mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Manual merge of bug#26030 in mysql-5.1-bugteam
This commit is contained in:
commit
8aaccbfc21
7 changed files with 160 additions and 97 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue