Mercurial > p > roundup > code
diff roundup/backends/back_mysql.py @ 3215:1128a4689367 maint-0.8
change AUTOCOMMIT=OFF to AUTOCOMMIT=0 for MySQL [SF#1143707]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 28 Feb 2005 03:31:43 +0000 |
| parents | e1da7b5b04ab |
| children | 088c1792b7f6 |
line wrap: on
line diff
--- a/roundup/backends/back_mysql.py Mon Feb 28 03:13:42 2005 +0000 +++ b/roundup/backends/back_mysql.py Mon Feb 28 03:31:43 2005 +0000 @@ -145,7 +145,7 @@ except MySQLdb.OperationalError, message: raise DatabaseError, message cursor = conn.cursor() - cursor.execute("SET AUTOCOMMIT=OFF") + cursor.execute("SET AUTOCOMMIT=0") cursor.execute("START TRANSACTION") return (conn, cursor) @@ -481,7 +481,7 @@ self.cursor = self.conn.cursor() # make sure we're in a new transaction and not autocommitting - self.sql("SET AUTOCOMMIT=OFF") + self.sql("SET AUTOCOMMIT=0") self.sql("START TRANSACTION") class MysqlClass:
