From d7971d066afde448f39cdb72c321d70baa6d3c6e Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 1 Apr 2009 20:41:08 +0000 Subject: [PATCH] selectall will leave a transaction open, call self.commit to close this transaction --- PLC/PostgreSQL.py | 1 + 1 file changed, 1 insertion(+) 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()). -- 2.43.0