diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index 442eedd08..f631925ff 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -1585,6 +1585,7 @@ int MySQL_Connection::async_send_simple_command(short event, char *stmt, unsigne void MySQL_Connection::reset() { status_flags=0; reusable=true; + options.last_set_autocommit=-1; // never sent delete local_stmts; local_stmts=new MySQL_STMTs_local(false); }