|
|||||||||||
|
bk commit into 4.1 tree (ramil:1.2689) BUG#31615
From: <ramil(at)mysql.com>
Date: Wed Oct 17 2007 - 05:28:01 EDT
ChangeSet@1.2689, 2007-10-17 14:28:00+05:00, ramil@mysql.com +4 -0 Fix for bug#31615: crash after set names ucs2 collate xxx Problem: currently, UCS-2 cannot be used as a client character set. Fix: raise an error if one attempts to set it to USC-2. mysql-test/r/ctype_ucs.result@1.36, 2007-10-17 14:27:58+05:00, ramil@mysql.com +8 -0 Fix for bug#31615: crash after set names ucs2 collate xxx
mysql-test/t/ctype_ucs.test@1.36, 2007-10-17 14:27:58+05:00, ramil@mysql.com +12 -0 Fix for bug#31615: crash after set names ucs2 collate xxx
sql/set_var.cc@1.193, 2007-10-17 14:27:58+05:00, ramil@mysql.com +22 -0 Fix for bug#31615: crash after set names ucs2 collate xxx
sql/set_var.h@1.63, 2007-10-17 14:27:58+05:00, ramil@mysql.com +1 -0 Fix for bug#31615: crash after set names ucs2 collate xxx
diff -Nrup a/mysql-test/r/ctype_ucs.result b/mysql-test/r/ctype_ucs.result --- a/mysql-test/r/ctype_ucs.result 2006-10-03 14:11:54 +05:00@@ -803,4 +803,12 @@ quote(name) ???????? ???????????????? drop table bug20536; +set names ucs2; +ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2' +set names ucs2 collate ucs2_bin; +ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2' +set character_set_client= ucs2; +ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2' +set character_set_client= concat('ucs', substr('2', 1)); +ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2' End of 4.1 tests diff -Nrup a/mysql-test/t/ctype_ucs.test b/mysql-test/t/ctype_ucs.test --- a/mysql-test/t/ctype_ucs.test 2006-10-03 14:11:54 +05:00@@ -535,4 +535,16 @@ select quote(name) from bug20536; drop table bug20536; +# --- a/sql/set_var.cc 2007-05-08 12:09:24 +05:00@@ -1992,6 +1992,21 @@ void sys_var_character_set_client::set_d } +bool sys_var_character_set_client::check(THD *thd, set_var *var)
int set_var_collation_client::check(THD *thd)
{
return 0;
diff -Nrup a/sql/set_var.h b/sql/set_var.h --- a/sql/set_var.h 2006-12-05 13:45:17 +04:00 void set_default(THD *thd, enum_var_type type); CHARSET_INFO **ci_ptr(THD *thd, enum_var_type type); + bool check(THD *thd, set_var *var); }; class sys_var_character_set_results :public sys_var_character_set -- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Wed Oct 17 05:28:14 2007 This archive was generated by hypermail 2.1.8 : Thu Jul 03 2008 - 10:04:01 EDT |
||||||||||
|
|||||||||||