avoid leaking transactions - merged changeset 12836 from 4.2
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Apr 2009 14:55:53 +0000 (14:55 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Apr 2009 14:55:53 +0000 (14:55 +0000)
PLC/PostgreSQL.py

index 172b5c3..9dcae20 100644 (file)
@@ -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()).