From: J. M. C. <jm...@do...> - 2005-04-18 23:43:26
|
Here's one way to do it, though kludgey: cursor.execute('commit') # note that this closes our transaction, so that the following works: cursor.execute('create database blah') J. Michael Caine wrote: > If I attempt to: > cursor.execute('create database blah...') > I get the following error: > libpq OperationalError: ERROR: CREATE DATABASE cannot run inside a > transaction block > > How can I accomplish my objective? > |