We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36ce914 commit 3497160Copy full SHA for 3497160
lib/MySQL_Session.cpp
@@ -405,7 +405,7 @@ bool MySQL_Session::handler_special_queries(PtrSize_t *pkt) {
405
406
// Handle autocommit BEGIN
407
size_t sal=strlen("set autocommit");
408
- if ( pkt->size > 7+sal) {
+ if ( pkt->size >= 7+sal) {
409
if (strncasecmp((char *)"set autocommit",(char *)pkt->ptr+5,sal)==0) {
410
__sync_fetch_and_add(&MyHGM->status.autocommit_cnt, 1);
411
unsigned int i;
0 commit comments