Don't parse COM_STMT_EXECUTE packets

The function information is only available for COM_QUERY packets.
This commit is contained in:
Markus Mäkelä 2020-09-15 10:47:16 +03:00
parent 5fccce5bb4
commit 6129f588a1
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -1107,7 +1107,7 @@ QueryClassifier::RouteInfo QueryClassifier::update_route_info(
process_routing_hints(pBuffer->hint, &route_target);
if (route_target == TARGET_SLAVE)
if (route_target == TARGET_SLAVE && command == MXS_COM_QUERY)
{
const QC_FUNCTION_INFO* infos = nullptr;
size_t n_infos = 0;