diff options
author | unknown <jcole@tetra.spaceapes.com> | 2001-03-12 18:16:30 -0600 |
---|---|---|
committer | unknown <jcole@tetra.spaceapes.com> | 2001-03-12 18:16:30 -0600 |
commit | ee92b9f634e3ca573ee6c30f87bc8e8714c08827 (patch) | |
tree | 873907f6d77f9c15af35e496f4d8ce9d14bf0dcc /sql/sql_parse.cc | |
parent | c6639098152b68b13aa77709e38c76515304381e (diff) | |
download | mariadb-git-ee92b9f634e3ca573ee6c30f87bc8e8714c08827.tar.gz |
Added SQL_ANSI_MODE.
Docs/manual.texi:
Added News section for 3.23.35, and change notes for SQL_ANSI_MODE.
sql/gen_lex_hash.cc:
Fixed typo.
Updated the values, so the parser can be created.
sql/mysql_priv.h:
Added ``global_state_map'' from sql_lex.cc.
sql/sql_class.h:
Added ``state_map'' to THD. This is a per-thread state map for lex.
sql/sql_lex.cc:
Renamed ``state_map'' to ``global_state_map''.
Changed yylex() to use the new per-thread state map.
sql/sql_parse.cc:
Copy global_state_map into thd->state_map on thread start.
sql/sql_yacc.yy:
Added SQL_ANSI_MODE.
Cleaned up some.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 31f59c5b850..5a2318ebfcf 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -512,6 +512,10 @@ pthread_handler_decl(handle_one_connection,arg) return 0; } + // copy global state map into thread + for(int x=0; x < 256; x++) + thd->state_map[x] = global_state_map[x]; + do { int error; |