summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <jcole@tetra.spaceapes.com>2001-03-14 01:18:16 -0600
committerunknown <jcole@tetra.spaceapes.com>2001-03-14 01:18:16 -0600
commitbf446ae40f836d48208bfbdf7d756ddc65b27c2f (patch)
tree8cce67ce74fd018d592134d364422581dd5ac55d /sql/sql_class.cc
parent8046201101960a7473b743372800eeb4227846b4 (diff)
downloadmariadb-git-bf446ae40f836d48208bfbdf7d756ddc65b27c2f.tar.gz
Moved state_map copying to THD::THD().
sql/sql_lex.cc: Changed serg's fix back.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 1bced49be57..24a48604da2 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -133,6 +133,10 @@ THD::THD():user_time(0),fatal_error(0),last_insert_id_used(0),
}
#endif
+ // copy global state map into thread
+ for(int x=0; x < 256; x++)
+ state_map[x] = global_state_map[x];
+
#ifdef __WIN__
real_id = 0 ;
#endif