Skip to content

Commit d754179

Browse files
author
Richard Jones
committed
merge from maint-0-8
1 parent c6baa0c commit d754179

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Fixed:
1515
- added content to ZRoundup refresh.txt file (sf bug 1147622)
1616
- fix invalid reference to csv.colon_separated
1717
- correct URL to What's New in setup.py meta-data
18+
- change AUTOCOMMIT=OFF to AUTOCOMMIT=0 for MySQL (sf bug 1143707)
1819

1920

2021
2005-02-17 0.8.1

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Cameron Blackwood,
7171
Jeff Blaine,
7272
Duncan Booth,
7373
Seb Brezel,
74+
J Alan Brogan,
7475
Titus Brown,
7576
Godefroid Chapelle,
7677
Roch'e Compaan,

roundup/backends/back_mysql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_mysql.py,v 1.56 2005-02-14 02:48:11 richard Exp $
1+
#$Id: back_mysql.py,v 1.57 2005-02-28 03:32:45 richard Exp $
22
#
33
# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected]>
44
#
@@ -146,7 +146,7 @@ def sql_open_connection(self):
146146
except MySQLdb.OperationalError, message:
147147
raise DatabaseError, message
148148
cursor = conn.cursor()
149-
cursor.execute("SET AUTOCOMMIT=OFF")
149+
cursor.execute("SET AUTOCOMMIT=0")
150150
cursor.execute("START TRANSACTION")
151151
return (conn, cursor)
152152

@@ -482,7 +482,7 @@ def sql_commit(self):
482482
self.cursor = self.conn.cursor()
483483

484484
# make sure we're in a new transaction and not autocommitting
485-
self.sql("SET AUTOCOMMIT=OFF")
485+
self.sql("SET AUTOCOMMIT=0")
486486
self.sql("START TRANSACTION")
487487

488488
class MysqlClass:

0 commit comments

Comments
 (0)