Skip to content
Permalink
Browse files

bug fix: Cater special characters during database deletion

  • Loading branch information...
usmannasir committed Sep 9, 2019
1 parent 9652510 commit b7fec586cbc27a7da8955a5d3622a942607902f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 plogical/mysqlUtilities.py
@@ -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()

0 comments on commit b7fec58

Please sign in to comment.
You can’t perform that action at this time.