diff --git a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc index 766918919..b0b46c3c3 100644 --- a/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc +++ b/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc @@ -891,7 +891,7 @@ static uint32_t resolve_query_type(parsing_info_t* pi, THD* thd) /** SELECT ..INTO variable|OUTFILE|DUMPFILE */ if (lex->result != NULL) { - if (lex->result->send_eof()) + if (dynamic_cast(lex->result)) { // SELECT ... INTO DUMPFILE|OUTFILE ... type = QUERY_TYPE_WRITE;