Commit 182c6603 by Michael DeHaan

Merge pull request #8419 from georgeOsdDev/escape_underscore_in_database_name

mysql_db module: Escape "_" in database name for "SHOW DATABASES" statement
parents 536a5952 972b06ee
......@@ -114,7 +114,7 @@ else:
#
def db_exists(cursor, db):
res = cursor.execute("SHOW DATABASES LIKE %s", (db,))
res = cursor.execute("SHOW DATABASES LIKE %s", (db.replace("_","\_"),))
return bool(res)
def db_delete(cursor, db):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment