In resolve_query_type type can be QUERY_TYPE_COMMIT even if lex->option_type is OPT_DEFAULT.

This commit is contained in:
VilhoRaatikka
2014-03-26 22:33:57 +02:00
parent ee6489d9eb
commit f380c707f9

View File

@ -445,13 +445,15 @@ static skygw_query_type_t resolve_query_type(
"next command."); "next command.");
} }
} }
type |= QUERY_TYPE_COMMIT;
if (lex->option_type == OPT_GLOBAL) if (lex->option_type == OPT_GLOBAL)
{ {
type |= (QUERY_TYPE_GLOBAL_WRITE|QUERY_TYPE_COMMIT); type |= QUERY_TYPE_GLOBAL_WRITE;
} }
else else if (lex->option_type == OPT_SESSION)
{ {
type |= (QUERY_TYPE_SESSION_WRITE|QUERY_TYPE_COMMIT); type |= QUERY_TYPE_SESSION_WRITE;
} }
goto return_qtype; goto return_qtype;
} }