[POS-commit] r5321 - stoqlib/trunk/external/sqlobject/postgres

Johan Dahlin jdahlin at async.com.br
Wed Nov 1 16:34:32 BRT 2006


Author: jdahlin
Date: Wed Nov  1 16:34:31 2006
New Revision: 5321

Modified:
   stoqlib/trunk/external/sqlobject/postgres/pgconnection.py

Log:
Return True and update comment

Modified: stoqlib/trunk/external/sqlobject/postgres/pgconnection.py
==============================================================================
--- stoqlib/trunk/external/sqlobject/postgres/pgconnection.py	(original)
+++ stoqlib/trunk/external/sqlobject/postgres/pgconnection.py	Wed Nov  1 16:34:31 2006
@@ -201,14 +201,14 @@
             return False
 
         # We must close the transaction with a commit so that
-        # the CREATE DATABASE can work (which can't be in a transaction):
+        # the DROP DATABASE can work (which can't be in a transaction):
         conn = self.getConnection()
         cur = conn.cursor()
         cur.execute('COMMIT')
         cur.execute('DROP DATABASE %s' % name)
         cur.close()
 
-        return False
+        return True
 
     def databaseExists(self, name):
         res = self.queryOne(


More information about the POS-commit mailing list