Loading sql/sql_class.cc +4 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,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 Loading sql/sql_lex.cc +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ int yylex(void *arg) uint length; enum lex_states state,prev_state; LEX *lex=current_lex; uchar *state_map = global_state_map; // thd->lex->state_map; uchar *state_map = lex->thd->state_map; YYSTYPE *yylval=(YYSTYPE*) arg; lex->yylval=yylval; // The global state Loading sql/sql_parse.cc +0 −4 Original line number Diff line number Diff line Loading @@ -512,10 +512,6 @@ 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; Loading Loading
sql/sql_class.cc +4 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,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 Loading
sql/sql_lex.cc +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ int yylex(void *arg) uint length; enum lex_states state,prev_state; LEX *lex=current_lex; uchar *state_map = global_state_map; // thd->lex->state_map; uchar *state_map = lex->thd->state_map; YYSTYPE *yylval=(YYSTYPE*) arg; lex->yylval=yylval; // The global state Loading
sql/sql_parse.cc +0 −4 Original line number Diff line number Diff line Loading @@ -512,10 +512,6 @@ 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; Loading