Merge branch '2.2' into develop
This commit is contained in:
@ -100,7 +100,7 @@ bool are_multi_statements_allowed(MXS_SESSION* pSession)
|
||||
|
||||
uint32_t get_prepare_type(GWBUF* buffer)
|
||||
{
|
||||
uint32_t type;
|
||||
uint32_t type = QUERY_TYPE_UNKNOWN;
|
||||
|
||||
if (mxs_mysql_get_command(buffer) == MXS_COM_STMT_PREPARE)
|
||||
{
|
||||
@ -127,9 +127,11 @@ uint32_t get_prepare_type(GWBUF* buffer)
|
||||
else
|
||||
{
|
||||
GWBUF* stmt = qc_get_preparable_stmt(buffer);
|
||||
ss_dassert(stmt);
|
||||
|
||||
type = qc_get_type_mask(stmt);
|
||||
if (stmt)
|
||||
{
|
||||
type = qc_get_type_mask(stmt);
|
||||
}
|
||||
}
|
||||
|
||||
ss_dassert((type & (QUERY_TYPE_PREPARE_STMT | QUERY_TYPE_PREPARE_NAMED_STMT)) == 0);
|
||||
|
Reference in New Issue
Block a user