From: Thierry Parmentelat Date: Thu, 2 Apr 2009 14:55:53 +0000 (+0000) Subject: avoid leaking transactions - merged changeset 12836 from 4.2 X-Git-Tag: PLCAPI-4.3-5~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70221828cb49cecf1092912e9e431d33f3cd0b22;p=plcapi.git avoid leaking transactions - merged changeset 12836 from 4.2 --- diff --git a/PLC/PostgreSQL.py b/PLC/PostgreSQL.py index 172b5c3b..9dcae20e 100644 --- a/PLC/PostgreSQL.py +++ b/PLC/PostgreSQL.py @@ -222,7 +222,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()).