Commit 972b06ee by Takeharu Oshida

Escape "_" in database name for "SHOW DATABASES" statement

parent b9a5242f
......@@ -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