Backport fix for MXS-3392 to 2.4
This solves problems with connectors that unconditionally send a COM_STMT_PREPARE.
This commit is contained in:
@ -305,8 +305,15 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
|
|||||||
else if (mxs_mysql_is_ps_command(command) && stmt_id == 0)
|
else if (mxs_mysql_is_ps_command(command) && stmt_id == 0)
|
||||||
{
|
{
|
||||||
// Unknown prepared statement ID
|
// Unknown prepared statement ID
|
||||||
|
if (mxs_mysql_command_will_respond(command))
|
||||||
|
{
|
||||||
succp = send_unknown_ps_error(extract_binary_ps_id(querybuf));
|
succp = send_unknown_ps_error(extract_binary_ps_id(querybuf));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
succp = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (TARGET_IS_NAMED_SERVER(route_target) || TARGET_IS_RLAG_MAX(route_target))
|
else if (TARGET_IS_NAMED_SERVER(route_target) || TARGET_IS_RLAG_MAX(route_target))
|
||||||
{
|
{
|
||||||
if ((target = handle_hinted_target(querybuf, route_target)))
|
if ((target = handle_hinted_target(querybuf, route_target)))
|
||||||
|
Reference in New Issue
Block a user