diff options
author | kroki/tomash@moonlight.home <> | 2007-03-09 13:17:46 +0300 |
---|---|---|
committer | kroki/tomash@moonlight.home <> | 2007-03-09 13:17:46 +0300 |
commit | 7bbea9675447cf74469d1552eac36181441e0160 (patch) | |
tree | 6197d95ef12f5c0b810b541f1b32c7955b0b1d7b /sql/set_var.cc | |
parent | b641bd7b198f41f5e235b58dadff64552df73582 (diff) | |
parent | c19affef54e613ff47daf36986a937fd5192e4a1 (diff) | |
download | mariadb-git-7bbea9675447cf74469d1552eac36181441e0160.tar.gz |
Merge moonlight.home:/home/tomash/src/mysql_ab/mysql-5.1
into moonlight.home:/home/tomash/src/mysql_ab/mysql-5.1-bug9953
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index df9297917b3..e2c90b72feb 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -2869,8 +2869,7 @@ bool sys_var_thd_time_zone::check(THD *thd, set_var *var) String str(buff, sizeof(buff), &my_charset_latin1); String *res= var->value->val_str(&str); - if (!(var->save_result.time_zone= - my_tz_find(res, thd->lex->time_zone_tables_used))) + if (!(var->save_result.time_zone= my_tz_find(thd, res))) { my_error(ER_UNKNOWN_TIME_ZONE, MYF(0), res ? res->c_ptr() : "NULL"); return 1; @@ -2931,8 +2930,7 @@ void sys_var_thd_time_zone::set_default(THD *thd, enum_var_type type) We are guaranteed to find this time zone since its existence is checked during start-up. */ - global_system_variables.time_zone= - my_tz_find(&str, thd->lex->time_zone_tables_used); + global_system_variables.time_zone= my_tz_find(thd, &str); } else global_system_variables.time_zone= my_tz_SYSTEM; |