summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-12-17 13:23:05 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-12-17 13:23:05 +0400
commit074455105cc760140925ac083efc2c38c6adb243 (patch)
treeeccfc88126cf51f474aa7a665186a727525ee935 /mysql-test/t
parent6bf10fac445d73fb796d4863612c87bff5f28b66 (diff)
downloadmariadb-git-074455105cc760140925ac083efc2c38c6adb243.tar.gz
MDEV-5445 Server crashes in Item_func_like::fix_fields on LIKE ExtractValue(..)
backporting from the main 10.0 modified: mysql-test/r/func_like.result mysql-test/t/func_like.test sql/item_cmpfunc.cc
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/func_like.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/func_like.test b/mysql-test/t/func_like.test
index f1fe52274b2..bc64504c742 100644
--- a/mysql-test/t/func_like.test
+++ b/mysql-test/t/func_like.test
@@ -133,3 +133,13 @@ DROP TABLE t1, t2;
SELECT '' LIKE '1' ESCAPE COUNT(1);
--echo End of 5.1 tests
+
+--echo #
+--echo # Start of 10.0 tests
+--echo #
+
+--echo #
+--echo # MDEV-5445 Server crashes in Item_func_like::fix_fields on LIKE ExtractValue(..)
+--echo #
+SELECT 'a' LIKE REPEAT('',0);
+SELECT 'a' LIKE EXTRACTVALUE('bar','qux');