MXS-1978 Fix qc_mysqlembedded behaviour
Now qc_mysqlembedded also treats SELECT ... INTO DUMPFILE|OUTFILE as a write.
This commit is contained in:
parent
7b001994b4
commit
470e4d440e
@ -736,7 +736,16 @@ static uint32_t resolve_query_type(parsing_info_t* pi, THD* thd)
|
||||
/** SELECT ..INTO variable|OUTFILE|DUMPFILE */
|
||||
if (lex->result != NULL)
|
||||
{
|
||||
type = QUERY_TYPE_GSYSVAR_WRITE;
|
||||
if (lex->result->send_eof())
|
||||
{
|
||||
// SELECT ... INTO DUMPFILE|OUTFILE ...
|
||||
type = QUERY_TYPE_WRITE;
|
||||
}
|
||||
else
|
||||
{
|
||||
// SELECT ... INTO @var
|
||||
type = QUERY_TYPE_GSYSVAR_WRITE;
|
||||
}
|
||||
goto return_qtype;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user