summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_misc.test
diff options
context:
space:
mode:
authorunknown <mhansson/martin@linux-st28.site>2007-10-01 09:11:45 +0200
committerunknown <mhansson/martin@linux-st28.site>2007-10-01 09:11:45 +0200
commit3b9b52b79a2ea793b555a7de1a813bdead53b0c4 (patch)
treecc66ad15fe310986093f487006f38dad79e3894c /mysql-test/t/func_misc.test
parentbd8e7fee1f260b6f5b9b39c67bb6e701eace3cae (diff)
parent582388e6d299b00db93f633ddace537c51eb66d4 (diff)
downloadmariadb-git-3b9b52b79a2ea793b555a7de1a813bdead53b0c4.tar.gz
Merge linux-st28.site:/home/martin/mysql/src/bug30832/my50-bug30832
into linux-st28.site:/home/martin/mysql/src/bug30832/my51-bug30832 mysql-test/r/func_misc.result: Auto merged mysql-test/t/func_misc.test: Auto merged sql/item.h: Auto merged
Diffstat (limited to 'mysql-test/t/func_misc.test')
-rw-r--r--mysql-test/t/func_misc.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/func_misc.test b/mysql-test/t/func_misc.test
index 01eff55d1f6..a8715346d0a 100644
--- a/mysql-test/t/func_misc.test
+++ b/mysql-test/t/func_misc.test
@@ -198,6 +198,19 @@ drop table table_26093;
drop function func_26093_a;
drop function func_26093_b;
+#
+# Bug #30832: Assertion + crash with select name_const('test',now());
+#
+--error ER_WRONG_ARGUMENTS
+SELECT NAME_CONST('test', NOW());
+--error ER_WRONG_ARGUMENTS
+SELECT NAME_CONST('test', UPPER('test'));
+
+SELECT NAME_CONST('test', NULL);
+SELECT NAME_CONST('test', 1);
+SELECT NAME_CONST('test', 1.0);
+SELECT NAME_CONST('test', 'test');
+
--echo End of 5.0 tests
#