From: Tony Mack <tmack@cs.princeton.edu>
Date: Tue, 31 Mar 2009 18:31:01 +0000 (+0000)
Subject: in selectall, close the db connection when we are finished
X-Git-Tag: PLCAPI-4.2-19~5
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e2a48e6f48d45a0b09fd21b403e06aec6e778c60;p=plcapi.git

in selectall, close the db connection when we are finished
---

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()).