Bug #39049 | Wrong warning when comparing some decimal values to NULL | ||
---|---|---|---|
Submitted: | 26 Aug 2008 16:18 | Modified: | 10 Dec 2008 12:18 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Patch pending | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 5.0, 5.1, 6.0 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[26 Aug 2008 16:18]
Matthias Leich
[10 Dec 2008 12:18]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/61202 2721 Alexey Botchkov 2008-12-10 Bug#39049 Wrong warning when comparing some decimal values to NULL the Item::update_null_value() implementation calls val_int(), that can fail if a decimal result of an item is bigger than any possible integer. update_null_value() now calls val_decimal() for DECIMAL_RESULT per-file messages: sql/item.cc Bug#39049 Wrong warning when comparing some decimal values to NULL update_null_value() implemented sql/item.h Bug#39049 Wrong warning when comparing some decimal values to NULL declaration of the update_null_value() changed
[10 Dec 2008 12:35]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/61204 2722 Alexey Botchkov 2008-12-10 Bug#39049 Wrong warning when comparing some decimal values to NULL per-file messages: mysql-test/r/type_newdecimal.result Bug#39049 Wrong warning when comparing some decimal values to NULL test result mysql-test/t/type_newdecimal.test Bug#39049 Wrong warning when comparing some decimal values to NULL test case