add missing quotes to encoding

This commit is contained in:
Jan Dittberner 2015-01-10 18:27:49 +01:00
parent 7ee5b7fc5f
commit 1cf370f4ae

View file

@ -140,7 +140,7 @@ def create_pgsql_database(dbname, username):
curs.execute(
"""
CREATE DATABASE %(dbname)s OWNER %(username)s
TEMPLATE template0 ENCODING UTF8
TEMPLATE template0 ENCODING 'UTF8'
""",
{'dbname': Ident(dbname), 'username': Ident(username)}
)