Add note about annoying MySQL Connector bug. (#212)

This commit is contained in:
Graham Voysey
2017-12-21 04:41:31 -05:00
committed by INADA Naoki
parent b948553229
commit d65e10e356
2 changed files with 32 additions and 5 deletions

View File

@ -9,6 +9,8 @@ except ImportError:
# of mysql_config
def dequote(s):
if not s:
raise Exception("Wrong MySQL configuration: maybe https://bugs.mysql.com/bug.php?id=86971 ?")
if s[0] in "\"'" and s[0] == s[-1]:
s = s[1:-1]
return s