diff options
author | kaa@kaamos.(none) <> | 2008-03-12 11:19:46 +0300 |
---|---|---|
committer | kaa@kaamos.(none) <> | 2008-03-12 11:19:46 +0300 |
commit | 0a7052e4d3633b818ab4050adcad646b888c5430 (patch) | |
tree | f84e4ada799bf37a3d9ef074064f8a17f408aa89 /sql/sp.cc | |
parent | d4025ce1a60322635bf5f7adb765f4612563ee3a (diff) | |
parent | 7e365efa30f5d42aaf87ce9044176e266ee337eb (diff) | |
download | mariadb-git-0a7052e4d3633b818ab4050adcad646b888c5430.tar.gz |
Merge kaamos.(none):/data/src/mysql-5.1
into kaamos.(none):/data/src/opt/mysql-5.1-opt
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index b486e58883a..69eae8de207 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -388,6 +388,7 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp) uint length; char buff[65]; String str(buff, sizeof(buff), &my_charset_bin); + bool saved_time_zone_used= thd->time_zone_used; ulong sql_mode, saved_mode= thd->variables.sql_mode; Open_tables_state open_tables_state_backup; Stored_program_creation_ctx *creation_ctx; @@ -504,6 +505,11 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp) sql_mode, params, returns, body, chistics, definer, created, modified, creation_ctx); done: + /* + Restore the time zone flag as the timezone usage in proc table + does not affect replication. + */ + thd->time_zone_used= saved_time_zone_used; if (table) close_system_tables(thd, &open_tables_state_backup); thd->variables.sql_mode= saved_mode; |