diff options
author | Marc Alff <marc.alff@sun.com> | 2008-07-07 15:53:20 -0600 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2008-07-07 15:53:20 -0600 |
commit | 8aaccbfc212e7d8bb99e96f2e9686da68cf2de09 (patch) | |
tree | b1b9220fc9e099b361f84152b88dae41d33f35b2 /sql/sql_lex.cc | |
parent | 50853ac31a5f158d02c986a9eec5144cf20d00b9 (diff) | |
parent | c7724872d85cebf07df3380757cf7259f9116682 (diff) | |
download | mariadb-git-8aaccbfc212e7d8bb99e96f2e9686da68cf2de09.tar.gz |
Manual merge of bug#26030 in mysql-5.1-bugteam
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 449c2fccb0b..64c2a911313 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1317,23 +1317,8 @@ int MYSQLlex(void *arg, void *yythd) lip->yySkip(); return (SET_VAR); case MY_LEX_SEMICOLON: // optional line terminator - if (lip->yyPeek()) - { - if ((thd->client_capabilities & CLIENT_MULTI_STATEMENTS) && - !lip->stmt_prepare_mode) - { - lex->safe_to_cache_query= 0; - lip->found_semicolon= lip->get_ptr(); - thd->server_status|= SERVER_MORE_RESULTS_EXISTS; - lip->next_state= MY_LEX_END; - lip->set_echo(TRUE); - return (END_OF_INPUT); - } - state= MY_LEX_CHAR; // Return ';' - break; - } - lip->next_state=MY_LEX_END; // Mark for next loop - return(END_OF_INPUT); + state= MY_LEX_CHAR; // Return ';' + break; case MY_LEX_EOL: if (lip->eof()) { @@ -1352,7 +1337,7 @@ int MYSQLlex(void *arg, void *yythd) case MY_LEX_END: lip->next_state=MY_LEX_END; return(0); // We found end of input last time - + /* Actually real shouldn't start with . but allow them anyhow */ case MY_LEX_REAL_OR_POINT: if (my_isdigit(cs,lip->yyPeek())) |