Skip to content

Commit

Permalink
bug fix: Cater special characters during database deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Sep 9, 2019
1 parent 9652510 commit b7fec58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plogical/mysqlUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def deleteDatabase(dbname, dbuser):
if connection == 0:
return 0

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

Expand Down

0 comments on commit b7fec58

Please sign in to comment.