0 1 0
default
Jean-Francois Pieronne - 11 years ago 2009-01-03 16:40:43
jf.pieronne@laposte.net
Bugfix from voalp
1 file changed with 3 insertions and 3 deletions:
↑ Collapse Diff ↑
...
 
@@ -59,13 +59,13 @@ class Cursor(object):
59 59
 
#        print operation, params
60 60
 
        if not self.is_open:
61 61
 
            raise ProgrammingError
62 62
 
        if self.stmt and self.stmt.isOpen():
63 63
 
            self.stmt.close()
64 64
 
            self.stmt = None
65
 
        self.stmt = Statement(operation)
65
 
        self.stmt = rdb.Statement(operation)
66 66
 
        if self.stmt.isOpen():
67 67
 
            self.stmt.close()
68 68
 
        for args in seq:
69 69
 
            self.stmt.execute(*args)
70 70
 
        self.description  = self.stmt.description()
71 71
 
        self.rowcount = self.stmt.rowcount()
...
 
@@ -119,18 +119,18 @@ class Connection(object):
119 119
 

	
120 120
 
    def declare_transaction(self, default_transaction):
121 121
 
        if not self.is_open:
122 122
 
            raise ProgrammingError
123 123
 
        rdb.declare_transaction(default_transaction)
124 124
 

	
125
 
    def start_read_only():
125
 
    def start_read_only(self):
126 126
 
        if not self.is_open:
127 127
 
            raise ProgrammingError
128 128
 
        rdb.read_only()
129 129
 

	
130
 
    def start_read_write():
130
 
    def start_read_write(self):
131 131
 
        if not self.is_open:
132 132
 
            raise ProgrammingError
133 133
 
        rdb.read_write()
134 134
 

	
135 135
 
    def commit(self):
136 136
 
        if not self.is_open:
0 comments (0 inline, 0 general)