Need to pop this.

This commit is contained in:
Ryan Williams
2010-02-25 03:52:12 -05:00
parent 017d7871a7
commit 7f9a59aa52

View File

@@ -619,6 +619,7 @@ class Psycopg2ConnectionPool(object):
def drop_db(self):
auth = self._auth.copy()
auth.pop('database') # can't drop database we connected to
conn = self._dbmodule.connect(**auth)
conn.set_isolation_level(0)
db = conn.cursor()