| Bug #5913 | Traditional mode: BIGINT range not correctly delimited | ||
|---|---|---|---|
| Submitted: | 6 Oct 2004 1:43 | Modified: | 21 May 2005 11:18 |
| Reporter: | Trudy Pelzer | ||
| Status: | Verified | ||
| Category: | Server: Errors | Severity: | S3 (Non-critical) |
| Version: | 5.0.2-alpha-debug | OS: | Linux (SuSE 9.1) |
| Assigned to: | Alexey Botchkov | Target Version: | |
| Triage: | Triaged: D2 (Serious) | ||
[6 Oct 2004 1:43]
Trudy Pelzer
[6 Oct 2004 2:02]
Miguel Solorzano
Verified against latest BK source tree.
[3 Dec 2004 23:19]
Trudy Pelzer
Here's another example, using BIGINT UNSIGNED, failing with 5.0.3-alpha-debug: mysql> set sql_mode='traditional'; mysql> create table t1 (col1 bigint unsigned); mysql> insert into t1 values(-1); Query OK, 1 row affected (0.00 sec) -- This is the incorrect response. INSERT should fail with SQLSTATE 22003 Out of range value mysql> select * from t1; +----------------------+ | col1 | +----------------------+ | 18446744073709551615 | +----------------------+ 1 row in set (0.00 sec)
[11 Jan 2005 5:20]
Sergey Petrunya
See also BUG#5083
[12 Jan 2005 23:07]
Sergey Petrunya
See also BUG#7670
[11 Apr 2005 18:37]
Trudy Pelzer
See also Bug#9809; probably related.
[21 May 2005 11:17]
Sergey Petrunya
Same as in BUG#5083: Delaying the fix as we currently don't have a set of well-defined rules about how and when are BIGINTs/strings/decimal numbers are converted. (btw this probem is documented in "Open bugs and design deficiencies" section of user manual).
[29 Jun 2005 12:09]
Matthias Leich
Even when it may sound banal and obviously, please do not forget
that the function
CAST( <value too big for target data type>
AS SIGNED/UNSIGNED INTEGER)
shows the same wrong behaviour.
