server/serverctl.py
branchstable
changeset 6863 2e52db5cdbde
parent 6860 a0dbf6135c72
child 6867 f691757792f9
--- a/server/serverctl.py	Thu Jan 20 16:45:21 2011 +0100
+++ b/server/serverctl.py	Thu Jan 20 17:14:28 2011 +0100
@@ -207,7 +207,7 @@
             cnx = _db_sys_cnx(source, 'DROP DATABASE', user=user)
             cursor = cnx.cursor()
             try:
-                cursor.execute('DROP DATABASE %s' % dbname)
+                cursor.execute('DROP DATABASE "%s"' % dbname)
                 print '-> database %s dropped.' % dbname
                 # XXX should check we are not connected as user
                 if user and helper.users_support and \