Fix false debug assertion

Given the following query:

PREPARE ps FROM 'PREPARE ps2 FROM \'SELECT 1\'';

The debug assertion is hit even though this is valid, albeit unsupported,
SQL. An optimization would be to ignore the query if the prepared
statement type is another prepared statement.
This commit is contained in:
Markus Mäkelä 2019-03-18 11:53:34 +02:00
parent dd99cadfd2
commit 17245c4ce3
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -148,8 +148,6 @@ uint32_t get_prepare_type(GWBUF* buffer)
}
}
mxb_assert((type & (QUERY_TYPE_PREPARE_STMT | QUERY_TYPE_PREPARE_NAMED_STMT)) == 0);
return type;
}