mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 08:34:28 +02:00
Initial multi query execution support
This commit is contained in:
parent
fe4e87c967
commit
b3f58a1b1b
6 changed files with 60 additions and 4 deletions
|
|
@ -906,7 +906,15 @@ int yylex(void *arg, void *yythd)
|
|||
case STATE_COLON: // optional line terminator
|
||||
if (yyPeek())
|
||||
{
|
||||
state=STATE_CHAR; // Return ';'
|
||||
if (((THD *)yythd)->client_capabilities & CLIENT_MULTI_QUERIES)
|
||||
{
|
||||
lex->found_colon=(char*)lex->ptr;
|
||||
((THD *)yythd)->server_status |= SERVER_MORE_RESULTS_EXISTS;
|
||||
lex->next_state=STATE_END;
|
||||
return(END_OF_INPUT);
|
||||
}
|
||||
else
|
||||
state=STATE_CHAR; // Return ';'
|
||||
break;
|
||||
}
|
||||
/* fall true */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue