From 34971602bbaa7513098cf6e58dd6baad5c45ea00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 6 Jan 2016 18:10:09 +0000 Subject: [PATCH] Fixed length of set autocommit --- lib/MySQL_Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index a165bcf0d5..1a57ce0475 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -405,7 +405,7 @@ bool MySQL_Session::handler_special_queries(PtrSize_t *pkt) { // Handle autocommit BEGIN size_t sal=strlen("set autocommit"); - if ( pkt->size > 7+sal) { + if ( pkt->size >= 7+sal) { if (strncasecmp((char *)"set autocommit",(char *)pkt->ptr+5,sal)==0) { __sync_fetch_and_add(&MyHGM->status.autocommit_cnt, 1); unsigned int i;