summaryrefslogtreecommitdiff
path: root/mysql-test/t/compare.test
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-06-21 18:47:13 +0300
committerunknown <sanja@montyprogram.com>2012-06-21 18:47:13 +0300
commit60561ae6133cf40f4fc445e1d6e8f395a20b2573 (patch)
treeb45c0166a329abe7f84e6b036e9953fa446e18f3 /mysql-test/t/compare.test
parentd9c3a3e39e4c5a6f060b7bbc1646ca74c123fbab (diff)
downloadmariadb-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.test8
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;