[FIX] Python typo fix

lp bug: https://launchpad.net/bugs/324285 fixed

bzr revid: stephane@tinyerp.com-20090202143518-6x96x6syd82se26d
This commit is contained in:
Stephane Wirtel 2009-02-02 15:35:18 +01:00
parent 557cc93aae
commit 392bf7f442
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class db(netsvc.Service):
cr = db.serialized_cursor()
cr.autocommit(True) # XXX inhibit the effect of a serialized cursor. is it what we want ?
try:
cr.execute("""CREATE DATABASE "%s" ENCODING 'unicode' TEMPLATE 'template0'""" % db_name)
cr.execute("""CREATE DATABASE "%s" ENCODING 'unicode' TEMPLATE "template0" """ % db_name)
finally:
cr.close()
sql_db.close_db('template1')