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:
94de5ce
)
in selectall, close the db connection when we are finished
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 31 Mar 2009 18:31:01 +0000
(18:31 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 31 Mar 2009 18:31:01 +0000
(18:31 +0000)
PLC/PostgreSQL.py
patch
|
blob
|
history
diff --git
a/PLC/PostgreSQL.py
b/PLC/PostgreSQL.py
index
22c2b63
..
0c4a24a
100644
(file)
--- a/
PLC/PostgreSQL.py
+++ b/
PLC/PostgreSQL.py
@@
-221,7
+221,7
@@
class PostgreSQL:
cursor = self.execute(query, params)
rows = cursor.fetchall()
cursor.close()
-
+ self.close()
if hashref or key_field is not None:
# Return each row as a dictionary keyed on field name
# (like DBI selectrow_hashref()).