From 1457b88606458787af070119e920d4ab71ced2dc Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Tue, 22 Nov 2016 21:25:20 +0200 Subject: [PATCH] Fix transaction tracking The transaction tracking functionality used the wrong pointer type for buffer data. This caused the query command comparison to always fail. --- server/modules/protocol/MySQL/MySQLClient/mysql_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/protocol/MySQL/MySQLClient/mysql_client.c b/server/modules/protocol/MySQL/MySQLClient/mysql_client.c index 49695b136..df10a1d1f 100644 --- a/server/modules/protocol/MySQL/MySQLClient/mysql_client.c +++ b/server/modules/protocol/MySQL/MySQLClient/mysql_client.c @@ -1440,7 +1440,7 @@ static int route_by_statement(SESSION* session, uint64_t capabilities, GWBUF** p if (rcap_type_required(capabilities, RCAP_TYPE_TRANSACTION_TRACKING)) { - uint32_t *data = GWBUF_DATA(packetbuf); + uint8_t *data = GWBUF_DATA(packetbuf); if (MYSQL_GET_COMMAND(data) == MYSQL_COM_QUERY) {