summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_misc.test
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2010-11-22 14:47:28 +0300
committerRamil Kalimullin <ramil@mysql.com>2010-11-22 14:47:28 +0300
commitbd557f04f644bda3b493c37225b169167eb6e11e (patch)
tree318334755d94aef3ee64545c0a4a566380f9162f /mysql-test/t/func_misc.test
parent3bae49d64ce0df04a85583b5dc680cda54760dbc (diff)
parent9d9699209d9ca66648db8aff46f6b66a4c1c18de (diff)
downloadmariadb-git-bd557f04f644bda3b493c37225b169167eb6e11e.tar.gz
Manual merge from mysql-5.5-bugteam.
Diffstat (limited to 'mysql-test/t/func_misc.test')
-rw-r--r--mysql-test/t/func_misc.test25
1 files changed, 23 insertions, 2 deletions
diff --git a/mysql-test/t/func_misc.test b/mysql-test/t/func_misc.test
index 2251ae45b3f..1a5c5373841 100644
--- a/mysql-test/t/func_misc.test
+++ b/mysql-test/t/func_misc.test
@@ -512,7 +512,28 @@ SELECT INET_NTOA(0);
SELECT '1' IN ('1', INET_NTOA(0));
---echo End of 5.1 tests
+--echo #
+--echo # End of 5.1 tests
+--echo #
+
+--echo #
+--echo # Bug #58199: name_const in the having clause crashes
+--echo #
+
+CREATE TABLE t1 (a INT);
+
+# NAME_CONST() would seg.fault when used wrongly in a HAVING clause
+--error ER_WRONG_ARGUMENTS
+SELECT 1 from t1 HAVING NAME_CONST('', a);
---echo End of tests
+DROP TABLE t1;
+
+
+--echo #
+--echo # End of 5.5 tests
+--echo #
+
+--echo #
+--echo # End of tests
+--echo #