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
commitcc5263b223c9bc65d2a98276020a56d23c2fde29 (patch)
tree318334755d94aef3ee64545c0a4a566380f9162f /mysql-test/t/func_misc.test
parentaab0c52976a9d647388525423f7c7e8d25ad4118 (diff)
parent218ca24cd9f8261b2473de6792067de75d95ca31 (diff)
downloadmariadb-git-cc5263b223c9bc65d2a98276020a56d23c2fde29.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 #