diff options
-rw-r--r-- | MySQLdb/connections.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MySQLdb/connections.py b/MySQLdb/connections.py index 2b423e7..908d72a 100644 --- a/MySQLdb/connections.py +++ b/MySQLdb/connections.py @@ -233,7 +233,7 @@ class Connection(_mysql.connection): # PEP-249 requires autocommit to be initially off autocommit = kwargs2.pop('autocommit', False) if autocommit is not None: - self.autocommit(bool(True)) + self.autocommit(bool(autocommit)) self.messages = [] def cursor(self, cursorclass=None): |