summaryrefslogtreecommitdiff
path: root/mysql-test/t/variables.test
diff options
context:
space:
mode:
authorbar@mysql.com <>2005-08-30 17:11:59 +0500
committerbar@mysql.com <>2005-08-30 17:11:59 +0500
commit3ff1acb8dbee3096aa67f4fee1fe56b0c52cd04a (patch)
treec58f94fee2fbe590aecabf9195f49dd997b30d9c /mysql-test/t/variables.test
parentd61780999b6cdd7229d715bfa52c04dcb245583a (diff)
downloadmariadb-git-3ff1acb8dbee3096aa67f4fee1fe56b0c52cd04a.tar.gz
Bug#12363
character_set_results is nullable, but value_ptr returns string "NULL" set_var.cc: Create Item_null instead of Item_string for NULL values variables.result, variables.test: adding test case
Diffstat (limited to 'mysql-test/t/variables.test')
-rw-r--r--mysql-test/t/variables.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test
index 7743b70d0cd..40cade15c9f 100644
--- a/mysql-test/t/variables.test
+++ b/mysql-test/t/variables.test
@@ -380,4 +380,12 @@ SET GLOBAL table_cache=-1;
SHOW VARIABLES LIKE 'table_cache';
SET GLOBAL table_cache=DEFAULT;
+#
+# Bugs12363: character_set_results is nullable,
+# but value_ptr returns string "NULL"
+#
+set character_set_results=NULL;
+select ifnull(@@character_set_results,"really null");
+set names latin1;
+
# End of 4.1 tests