Commit 18b6091d by Jeffrey Chu

Add quotes around postgresql database name

parent bff581be
......@@ -124,7 +124,7 @@ def db_create(cursor, db, owner, template, encoding):
template = " TEMPLATE \"%s\"" % template
if encoding:
encoding = " ENCODING '%s'" % encoding
query = "CREATE DATABASE %s%s%s%s" % (db, owner, template, encoding)
query = "CREATE DATABASE \"%s\"%s%s%s" % (db, owner, template, encoding)
cursor.execute(query)
return True
elif owner and not db_owned_by(cursor, db, owner):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment