Bug #213 | BIGINT UNSIGNED columns does not cut negative values properly | ||
---|---|---|---|
Submitted: | 31 Mar 2003 11:43 | Modified: | 17 Apr 2003 16:22 |
Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.0 | OS: | Any (All) |
Assigned to: | CPU Architecture: | Any |
[31 Mar 2003 11:43]
Peter Zaitsev
[17 Apr 2003 16:22]
Michael Widenius
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php The different behaviour between usigned int and unsigned bigint is NOT fixable as MySQL can't with bigint know if the value has 'wrapped around' due to an arithmetic operation or if the value comes from a client that doesn't handle unsigned bigint's properly. The later is not uncommon in ODBC applications as BIGINT is a relatively new thing in ODBC. In MySQL 4.1.x or 5.0.x we will enable a new string -> longlong code that will make -1 and "-1" work identical for bigints