git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfc272f
)
selectall will leave a transaction open, call self.commit to close this transaction
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 1 Apr 2009 20:41:08 +0000
(20:41 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 1 Apr 2009 20:41:08 +0000
(20:41 +0000)
PLC/PostgreSQL.py
patch
|
blob
|
history
diff --git
a/PLC/PostgreSQL.py
b/PLC/PostgreSQL.py
index
ecc4ec5
..
674c309
100644
(file)
--- a/
PLC/PostgreSQL.py
+++ b/
PLC/PostgreSQL.py
@@
-221,6
+221,7
@@
class PostgreSQL:
cursor = self.execute(query, params)
rows = cursor.fetchall()
cursor.close()
+ self.commit()
if hashref or key_field is not None:
# Return each row as a dictionary keyed on field name
# (like DBI selectrow_hashref()).