Author: phd
Date: 2006-02-06 11:56:55 -0700 (Mon, 06 Feb 2006)
New Revision: 1577
Modified:
home/phd/SQLObject/paramstyles/sqlobject/postgres/pgconnection.py
Log:
Merged patches from the revisions 1574:1575 from the trunk: fixed the bug 1421633.
Modified: home/phd/SQLObject/paramstyles/sqlobject/postgres/pgconnection.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/postgres/pgconnection.py 2006-02-06 18:55:27 UTC (rev 1576)
+++ home/phd/SQLObject/paramstyles/sqlobject/postgres/pgconnection.py 2006-02-06 18:56:55 UTC (rev 1577)
@@ -318,10 +318,7 @@
# We must close the transaction with a commit so that
# the CREATE DATABASE can work (which can't be in a transaction):
cur.execute('COMMIT')
- # And we can't use template1 since we're connected to template1,
- # so we use template0. @@: What's the difference between
- # these two templates?
- cur.execute('CREATE DATABASE %s TEMPLATE=template0' % self.db)
+ cur.execute('CREATE DATABASE %s' % self.db)
cur.close()
conn.close()
|