From 70221828cb49cecf1092912e9e431d33f3cd0b22 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 2 Apr 2009 14:55:53 +0000 Subject: [PATCH] avoid leaking transactions - merged changeset 12836 from 4.2 --- PLC/PostgreSQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/PostgreSQL.py b/PLC/PostgreSQL.py index 172b5c3..9dcae20 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()). -- 2.43.0