From 4130b7b32a41dedcb7a616987befae380f6d506a Mon Sep 17 00:00:00 2001 From: rayzyar Date: Thu, 20 Aug 2015 17:58:41 +0800 Subject: [PATCH] (FIX) shouldnt set autocommit to 0 in beginTransaction --- lib/drivers/mysql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drivers/mysql.js b/lib/drivers/mysql.js index ac11abb..336754a 100644 --- a/lib/drivers/mysql.js +++ b/lib/drivers/mysql.js @@ -18,7 +18,7 @@ var MySqlConnection = Connection.extend({ }, beginTransaction: function (callback) { - this._runSql(["SET autocommit=0", "START TRANSACTION"], callback); + this._runSql(["START TRANSACTION"], callback); }, commitTransaction: function (callback) {