diff options
author | mysql@home.(none) <> | 2003-04-05 15:59:29 +0500 |
---|---|---|
committer | mysql@home.(none) <> | 2003-04-05 15:59:29 +0500 |
commit | bc1fe848cbeb57b5657591363cc96f234401aee8 (patch) | |
tree | ec2c8ddea1c7e2b303b24a01c894c3506136070e /sql/set_var.cc | |
parent | 6a948b83639a7817aa2698e51137b61deb5fdf95 (diff) | |
download | mariadb-git-bc1fe848cbeb57b5657591363cc96f234401aee8.tar.gz |
sql_yacc.yy, set_var.h, set_var.cc:
Optimization of SET NAMES
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index d0b9a2170e4..a47fdbfb63f 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1655,6 +1655,34 @@ int set_var_password::update(THD *thd) 1 : 0); } + +/***************************************************************************** + Functions to handle SET NAMES and SET CHARACTER SET +*****************************************************************************/ + +int set_var_client_collation::check(THD *thd) +{ + return 0; +} + +int set_var_client_collation::update(THD *thd) +{ +#if 0 + if (var->type == OPT_GLOBAL) + global_system_variables.thd_charset= var->save_result.charset; + else +#endif + { + thd->variables.thd_charset= client_collation; + thd->variables.convert_result_charset= convert_result_charset; + thd->protocol_simple.init(thd); + thd->protocol_prep.init(thd); + } + return 0; +} + + + /**************************************************************************** Used templates ****************************************************************************/ |