From: Tony Mack Date: Wed, 1 Apr 2009 20:41:08 +0000 (+0000) Subject: selectall will leave a transaction open, call self.commit to close this transaction X-Git-Tag: PLCAPI-4.2-19~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d7971d066afde448f39cdb72c321d70baa6d3c6e;p=plcapi.git selectall will leave a transaction open, call self.commit to close this transaction --- diff --git a/PLC/PostgreSQL.py b/PLC/PostgreSQL.py index ecc4ec5..674c309 100644 --- 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()).