Skip to content

Commit

Permalink
Fix bug #2133
Browse files Browse the repository at this point in the history
Recession bug introduced in 2.0.5
  • Loading branch information
renecannao committed Jul 14, 2019
1 parent d65f701 commit 64c5bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ bool MySQL_Session::handler_CommitRollback(PtrSize_t *pkt) {

bool MySQL_Session::handler_SetAutocommit(PtrSize_t *pkt) {
size_t sal=strlen("set autocommit");
char * _ptr = NULL;
char * _ptr = (char *)pkt->ptr;
if ( pkt->size >= 7+sal) {
if (strncasecmp((char *)"SET @@session.autocommit",(char *)pkt->ptr+5,strlen((char *)"SET @@session.autocommit"))==0) {
memmove(_ptr+9, _ptr+19, pkt->size - 19);
Expand Down

0 comments on commit 64c5bd9

Please sign in to comment.