MXS-1329: Only parse text protocol statements
The query classifier should only be used to parse text protocol statements. The insertstream filter exploited the fact that any statements that the filter did not expect would be classified as an unknown commands. This led to repetitive error messages with binary protocol statements.
This commit is contained in:
@ -574,7 +574,8 @@ static bool extract_insert_target(GWBUF *buffer, char* target, int len)
|
|||||||
{
|
{
|
||||||
bool rval = false;
|
bool rval = false;
|
||||||
|
|
||||||
if (qc_get_operation(buffer) == QUERY_OP_INSERT &&
|
if (MYSQL_GET_COMMAND(GWBUF_DATA(buffer)) == MYSQL_COM_QUERY &&
|
||||||
|
qc_get_operation(buffer) == QUERY_OP_INSERT &&
|
||||||
only_implicit_values(buffer))
|
only_implicit_values(buffer))
|
||||||
{
|
{
|
||||||
int n_tables = 0;
|
int n_tables = 0;
|
||||||
|
Reference in New Issue
Block a user