summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_misc.test
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-11-29 10:23:30 +0400
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-11-29 10:23:30 +0400
commitb9c4817058ea791db0f623b7c50093296e475de2 (patch)
tree9cb2ae2bcf1e885fb7cbbe108d621886cae1c9a2 /mysql-test/t/func_misc.test
parent18489d1052c96b912e1ff8127f10a63e1743bd92 (diff)
parentba974f83712e458275ac2a3d2a803c36871cf4f0 (diff)
downloadmariadb-git-b9c4817058ea791db0f623b7c50093296e475de2.tar.gz
Merge mysql.com:/home/ram/work/b32559/b32559.5.0
into mysql.com:/home/ram/work/b32559/b32559.5.1 mysql-test/r/func_misc.result: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged mysql-test/t/func_misc.test: manual merge.
Diffstat (limited to 'mysql-test/t/func_misc.test')
-rw-r--r--mysql-test/t/func_misc.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/func_misc.test b/mysql-test/t/func_misc.test
index 4b7685c3633..4bcbff6fa15 100644
--- a/mysql-test/t/func_misc.test
+++ b/mysql-test/t/func_misc.test
@@ -213,6 +213,17 @@ SELECT NAME_CONST('test', 1.0);
SELECT NAME_CONST('test', -1.0);
SELECT NAME_CONST('test', 'test');
+#
+# Bug #32559: connection hangs on query with name_const
+#
+CREATE TABLE t1(a INT);
+INSERT INTO t1 VALUES (), (), ();
+--error ER_WRONG_ARGUMENTS
+SELECT NAME_CONST(a, '1') FROM t1;
+--error ER_WRONG_ARGUMENTS
+SET INSERT_ID= NAME_CONST(a, a);
+DROP TABLE t1;
+
--echo End of 5.0 tests
#