[c-c delete] add quote on db drop statement to be more robust to exotic database names
--- 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 \