added detection of drop table targeting a temporary table

This commit is contained in:
Markus Makela
2014-08-31 20:19:47 +03:00
parent ecc89a823b
commit 58e8c05c8a
3 changed files with 40 additions and 19 deletions

View File

@ -540,7 +540,13 @@ static skygw_query_type_t resolve_query_type(
{
type |= QUERY_TYPE_CREATE_TMP_TABLE;
}
}
if(lex->sql_command == SQLCOM_DROP_TABLE)
{
type |= QUERY_TYPE_DROP_TABLE;
}
goto return_qtype;
}