summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <timour@mysql.com>2005-07-16 10:30:25 +0300
committerunknown <timour@mysql.com>2005-07-16 10:30:25 +0300
commit7adfe96d9ebb3428550aeab79f08f5395d0ac44c (patch)
tree9dbce5da93f1f67a1d13bf76921230c0b8e8ef49 /libmysql
parentb6f3a373700dcfa676a5d9a3c93e63267b6b389a (diff)
downloadmariadb-git-7adfe96d9ebb3428550aeab79f08f5395d0ac44c.tar.gz
Added test for Bug #11521
"Negative integer keys incorrectly substituted for 0 during range analysis." The problem is that the range optimizer incorrectly replaces any negative constant with '0' for all types except BIGINT because the method save_in_field() casts negative integers to non-negative. This causes incorrect query results where (0 = any_negative_number). The problem caused by this bug is fixed by the patch for BUG#11185. That patch constitutes an optimization due to which the problem code is never called with negative constants. This patch adds a test so we are sure that the problem does not reappear. mysql-test/r/select.result: Test for BUG#11521. mysql-test/t/select.test: Test for BUG#11521.
Diffstat (limited to 'libmysql')
0 files changed, 0 insertions, 0 deletions