Skip to content

Commit b7fec58

Browse files
committed
bug fix: Cater special characters during database deletion
1 parent 9652510 commit b7fec58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plogical/mysqlUtilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def deleteDatabase(dbname, dbuser):
134134
if connection == 0:
135135
return 0
136136

137-
cursor.execute("DROP DATABASE " + dbname)
137+
cursor.execute("DROP DATABASE `%s`" % (dbname))
138138
cursor.execute("DROP USER '"+dbuser+"'@'localhost'")
139139
connection.close()
140140

0 commit comments

Comments
 (0)