Treat Quit command as an empty object set. Issue #26.

pull/36/head
Guy Lichtman 2013-01-12 18:04:38 +02:00
parent af0a366267
commit 8d85b09b72
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ static void audit(ThdSesData *pThdData)
LEX *pLex = Audit_formatter::thd_lex(pThdData->getTHD()); LEX *pLex = Audit_formatter::thd_lex(pThdData->getTHD());
TABLE_LIST * table = pLex->query_tables; TABLE_LIST * table = pLex->query_tables;
int matched = 0; int matched = 0;
if(!table) //empty list of objects if(strcmp(pThdData->getCmdName(),"Quit") == 0 || !table) //empty list of objects
{ {
matched = record_empty_objs_set; matched = record_empty_objs_set;
} }