Bug #31104 | string to longlong conversion error | ||
---|---|---|---|
Submitted: | 20 Sep 2007 6:31 | Modified: | 15 Oct 2007 6:00 |
Reporter: | Venu Anuganti | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0-bk, 5.1-bk | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | string to longlong bug |
[20 Sep 2007 6:31]
Venu Anuganti
[20 Sep 2007 7:19]
Domas Mituzas
The problem here is not the reaction to bigger precision, but actually completely broken number conversion: mysql> create table t1 (a bigint); Query OK, 0 rows affected (0.00 sec) mysql> insert into t1 values ("1.0000000000"); Query OK, 1 row affected (0.00 sec) mysql> insert into t1 values ("1.000000000000000000"); Query OK, 1 row affected (0.00 sec) mysql> insert into t1 values ("1.0000000000000000000000"); Query OK, 1 row affected, 1 warning (0.00 sec) mysql> show warnings; +---------+------+-----------------------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------------------+ | Warning | 1264 | Out of range value adjusted for column 'a' at row 1 | +---------+------+-----------------------------------------------------+ 1 row in set (0.00 sec) mysql> select * from t1; +---------------------+ | a | +---------------------+ | 1 | | 1 | | 9223372036854775807 | +---------------------+ 3 rows in set (0.00 sec) mysql>
[12 Oct 2007 14:48]
Konstantin Osipov
Alexei, this seems to be a dup of the other bug I assigned to you.
[15 Oct 2007 6:00]
Alexey Kopytov
Duplicate of bug #30453.