1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Initial multi query execution support

This commit is contained in:
venu@myvenu.com
2003-01-18 11:53:38 -08:00
parent 529e4a76c5
commit a39da98d0d
6 changed files with 60 additions and 4 deletions

View File

@ -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 */