selectall will leave a transaction open, call self.commit to close this transaction
authorTony Mack <tmack@cs.princeton.edu>
Wed, 1 Apr 2009 20:41:08 +0000 (20:41 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 1 Apr 2009 20:41:08 +0000 (20:41 +0000)
PLC/PostgreSQL.py

index ecc4ec5..674c309 100644 (file)
@@ -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()).