server/serverctl.py
changeset 7569 02c338197322
parent 7479 b0603fc4ed6d
parent 7564 1d64c8d33156
child 7577 9892937d9041
--- a/server/serverctl.py	Mon Jun 27 18:48:30 2011 +0200
+++ b/server/serverctl.py	Tue Jun 28 16:33:53 2011 +0200
@@ -356,7 +356,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)