Merge lp:~djfroofy/oursql/autocommitoff-oursql-785305 into lp:~habnabit/oursql/master

Proposed by Drew Smathers
Status: Needs review
Proposed branch: lp:~djfroofy/oursql/autocommitoff-oursql-785305
Merge into: lp:~habnabit/oursql/master
Diff against target: 11 lines (+1/-0)
1 file modified
oursqlx/cursor.pyx (+1/-0)
To merge this branch: bzr merge lp:~djfroofy/oursql/autocommitoff-oursql-785305
Reviewer Review Type Date Requested Status
Aaron Gallagher Pending
Review via email: mp+61676@code.launchpad.net

Description of the change

This sets autocommit to OFF for new cursors. See issue #785305 for details.

To post a comment you must log in.

Unmerged revisions

71. By Drew Smathers

set autocommit off for new cursors [f785305]

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'oursqlx/cursor.pyx'
2--- oursqlx/cursor.pyx 2009-11-04 20:16:04 +0000
3+++ oursqlx/cursor.pyx 2011-05-19 22:49:29 +0000
4@@ -45,6 +45,7 @@
5 self.rowcount = -1
6 self.arraysize = 1
7 self.try_plain_query = try_plain_query
8+ self.execute('set autocommit=\'OFF\'')
9
10 cdef int _check_closed(self) except -1:
11 if not self.conn.conn:

Subscribers

People subscribed via source and target branches

to all changes: