From e2a48e6f48d45a0b09fd21b403e06aec6e778c60 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 31 Mar 2009 18:31:01 +0000 Subject: [PATCH] in selectall, close the db connection when we are finished --- PLC/PostgreSQL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/PostgreSQL.py b/PLC/PostgreSQL.py index 22c2b63f..0c4a24a1 100644 --- a/PLC/PostgreSQL.py +++ b/PLC/PostgreSQL.py @@ -221,7 +221,7 @@ class PostgreSQL: cursor = self.execute(query, params) rows = cursor.fetchall() cursor.close() - + self.close() if hashref or key_field is not None: # Return each row as a dictionary keyed on field name # (like DBI selectrow_hashref()). -- 2.47.0