diff options
author | unknown <bar@mysql.com> | 2005-08-30 17:11:59 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-08-30 17:11:59 +0500 |
commit | bda02a17e79f3346ce2680ed04670e11f2bfcf63 (patch) | |
tree | c58f94fee2fbe590aecabf9195f49dd997b30d9c /mysql-test | |
parent | ffcaabe36ed2fa3bea78f80fb2624688c56ada78 (diff) | |
download | mariadb-git-bda02a17e79f3346ce2680ed04670e11f2bfcf63.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
sql/set_var.cc:
Bug#12363
character_set_results is nullable, but value_ptr returns string "NULL"
Create Item_null instead of Item_string for NULL values
mysql-test/t/variables.test:
fixing tests accordingly
mysql-test/r/variables.result:
fixing tests accordingly
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/variables.result | 5 | ||||
-rw-r--r-- | mysql-test/t/variables.test | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result index 14260cd04f9..b01a8c1f8bf 100644 --- a/mysql-test/r/variables.result +++ b/mysql-test/r/variables.result @@ -491,3 +491,8 @@ SHOW VARIABLES LIKE 'table_cache'; Variable_name Value table_cache 1 SET GLOBAL table_cache=DEFAULT; +set character_set_results=NULL; +select ifnull(@@character_set_results,"really null"); +ifnull(@@character_set_results,"really null") +really null +set names latin1; 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 |