diff options
author | unknown <sanja@montyprogram.com> | 2012-06-21 18:47:13 +0300 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-06-21 18:47:13 +0300 |
commit | 60561ae6133cf40f4fc445e1d6e8f395a20b2573 (patch) | |
tree | b45c0166a329abe7f84e6b036e9953fa446e18f3 /mysql-test/t/compare.test | |
parent | d9c3a3e39e4c5a6f060b7bbc1646ca74c123fbab (diff) | |
download | mariadb-git-60561ae6133cf40f4fc445e1d6e8f395a20b2573.tar.gz |
Fix for LP bug#1001505 and LP bug#1001510
We set correct cmp_context during preparation to avoid changing it later by Item_field::equal_fields_propagator.
(see mysql bugs #57135 #57692 during merging)
Diffstat (limited to 'mysql-test/t/compare.test')
-rw-r--r-- | mysql-test/t/compare.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/compare.test b/mysql-test/t/compare.test index 103244eb2f7..d2b2a7e5523 100644 --- a/mysql-test/t/compare.test +++ b/mysql-test/t/compare.test @@ -86,3 +86,11 @@ SELECT * FROM t1 WHERE a > '2008-01-01' AND a = '0000-00-00'; DROP TABLE t1; --echo End of 5.0 tests + +# +# Bug #11764818 57692: Crash in item_func_in::val_int() with ZEROFILL +# + +CREATE TABLE t1(a INT ZEROFILL); +SELECT 1 FROM t1 WHERE t1.a IN (1, t1.a) AND t1.a=2; +DROP TABLE t1; |