diff options
author | unknown <jani@linux-th5m.site> | 2007-05-24 19:47:58 +0300 |
---|---|---|
committer | unknown <jani@linux-th5m.site> | 2007-05-24 19:47:58 +0300 |
commit | 635728a6e69f95c0a4008fb4b65992d58486bc51 (patch) | |
tree | 2958d280359513f6d2b3ce1f9b1dfd0f818bfb98 /sql/set_var.cc | |
parent | 6356f5631c1b6dab40b747abe54797f1779aef80 (diff) | |
download | mariadb-git-635728a6e69f95c0a4008fb4b65992d58486bc51.tar.gz |
Merged from main 5.1
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index f57680d275f..95f55be587a 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1863,19 +1863,6 @@ void sys_var_collation_sv::set_default(THD *thd, enum_var_type type) } -bool sys_var_collation_server::update(THD *thd, set_var *var) -{ - if (var->type == OPT_GLOBAL) - global_system_variables.collation_server= var->save_result.charset; - else - { - thd->variables.collation_server= var->save_result.charset; - thd->update_charset(); - } - return 0; -} - - uchar *sys_var_collation_sv::value_ptr(THD *thd, enum_var_type type, LEX_STRING *base) { @@ -2900,7 +2887,7 @@ void set_var_free() int mysql_append_static_vars(const SHOW_VAR *show_vars, uint count) { for (; count > 0; count--, show_vars++) - if (insert_dynamic(&fixed_show_vars, (char*) show_vars)) + if (insert_dynamic(&fixed_show_vars, (uchar*) show_vars)) return 1; return 0; } |