Hi all
I HAVE AN URGENT ISSUE!!
I have a database table where I am storing VERY large numbers.... numbers up to 200 digits long.
I had this working on my MySQL 4 database but we migrated to MySQL 5.0.27 this week and I am having issues.
I have a field set to DOUBLE(200,0).
When I try and insert/update a large number like 99999999999999999999999999999999999999999999999999999999999999999999999999999
I check the data and it is "truncated" to: 9999999999999999635896294965248
for example:
Then i do a select and I get:
I dont know why at the moment..... its not PHP as I access another database running off the same web server that works, its got to do with this new version of MySQL 5.
Our SQL MODE is set to ''
When I run an update and try update the column with the large number we get the warning:
Warning | 1264 | Out of range value adjusted for column 'money' at row 1
Can anyone help? Its pretty URGENT!!!!
I HAVE AN URGENT ISSUE!!
I have a database table where I am storing VERY large numbers.... numbers up to 200 digits long.
I had this working on my MySQL 4 database but we migrated to MySQL 5.0.27 this week and I am having issues.
I have a field set to DOUBLE(200,0).
When I try and insert/update a large number like 99999999999999999999999999999999999999999999999999999999999999999999999999999
I check the data and it is "truncated" to: 9999999999999999635896294965248
for example:
Code:
insert into test (val) values ('99999999999999999999999999999999999999999999999999999999999999999999999999999')
Then i do a select and I get:
Code:
select * from test;
val
---
9999999999999999635896294965248
I dont know why at the moment..... its not PHP as I access another database running off the same web server that works, its got to do with this new version of MySQL 5.
Our SQL MODE is set to ''
When I run an update and try update the column with the large number we get the warning:
Warning | 1264 | Out of range value adjusted for column 'money' at row 1
Can anyone help? Its pretty URGENT!!!!








