Hi,
I’ve got a problem with UNSIGNED INT columns on different mysql versions:
(stylised queries)
MySql 4:
mysql> select col from tab;
mysql> 0
mysql> update tab set col=col-1;
mysql> select col from tab;
mysql> 0
MySql 5:
mysql> select col from tab;
mysql> 0
mysql> update tab set col=col-1;
mysql> select col from tab;
mysql> 4294967295
MySql 5 seems to have an integer overflow, which is VERY bad in my case. Is there a way to teach MySql 5 to act like MySql 4 to keep the zero (even if the actual value is lower)?
I hopy you can help! This prevents me from updating to a newer MySql Version …
Thanks and kind regards,
Chris
P.S. I don’t know the exact mysql-versions by heart but can hand it in later if it is important / required!