View previous topic :: View next topic |
Author |
Message |
all_username_taken n00b

Joined: 28 Oct 2005 Posts: 2 Location: Sweden
|
Posted: Fri Oct 28, 2005 2:19 pm Post subject: Mysql 4.0 -> Mysql 4.1 |
|
|
Hi, I get some really wierd problem upgrading from 4.0 to 4.1. I followed the guide posted on the gentoo page and it worked just fine up to the part
when you read back the old databases. I have a table with colums with float numbers.. like 165.0 and so on. And for some reason all the values above 100 has been turned into 99.99 after the upgrade. |
|
Back to top |
|
 |
eelke Guru


Joined: 17 May 2004 Posts: 406 Location: Earth, Netherlands, Friesland
|
Posted: Sat Oct 29, 2005 6:45 am Post subject: |
|
|
Sounds like the type of the column does not allow for more then 2.2 digits. Check the table definition to see if thats the problem. If it is you can manually edit the create table statement in your dump and try again. |
|
Back to top |
|
 |
all_username_taken n00b

Joined: 28 Oct 2005 Posts: 2 Location: Sweden
|
Posted: Sat Oct 29, 2005 11:59 am Post subject: |
|
|
hi, I did that and it say in the table that it is an float with 4,2 width.. if I get this correctly it would mean that the maximum allowed number would be 9999.99 right? _________________ -----------------------------------------------------------------
Sorry about the crappy name.. but i ran out of ideas  |
|
Back to top |
|
 |
canal Apprentice

Joined: 28 Sep 2004 Posts: 203
|
Posted: Sat Oct 29, 2005 1:00 pm Post subject: |
|
|
all_username_taken wrote: | if I get this correctly it would mean that the maximum allowed number would be 9999.99 right? |
Wrong. In MySQL 4+ it means number between -99.99 and 99.99, in MySQL 3.x it was number between -.99 and .99 (I'm not joking). Take a look. |
|
Back to top |
|
 |
|