server/serverctl.py
branchstable
changeset 7564 1d64c8d33156
parent 7342 d1c8b5b3531c
child 7569 02c338197322
child 7594 d177c0755b10
--- a/server/serverctl.py	Mon Jun 27 15:17:52 2011 +0200
+++ b/server/serverctl.py	Mon Jun 27 18:46:08 2011 +0200
@@ -355,7 +355,7 @@
                         print '-> user %s created.' % user
                 if dbname in helper.list_databases(cursor):
                     if automatic or ASK.confirm('Database %s already exists -- do you want to drop it ?' % dbname):
-                        cursor.execute('DROP DATABASE %s' % dbname)
+                        cursor.execute('DROP DATABASE "%s"' % dbname)
                     else:
                         print ('you may want to run "cubicweb-ctl db-init '
                                '--drop %s" manually to continue.' % config.appid)