diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 17:30:36 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2012-09-07 17:30:36 +0000 |
commit | 6fc719b4b1a6f51a7717680c491be241c160c97b (patch) | |
tree | 7685917064fc1aec349d57b76181abbf7d4eb7f7 | |
parent | 318dab9ab410974160b6aedafde5730814e59a07 (diff) | |
download | mysqldb1-6fc719b4b1a6f51a7717680c491be241c160c97b.tar.gz |
Make the insert_values regex case-insensitive. Fixes #3511137
-rw-r--r-- | MySQLdb/MySQLdb/cursors.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index d7dc458..edf486a 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -16,7 +16,8 @@ restr = (r"\svalues\s*" r"(?:\([^\)]*\))" r")+\))") -insert_values= re.compile(restr) +insert_values = re.compile(restr, re.I) + from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \ DatabaseError, OperationalError, IntegrityError, InternalError, \ NotSupportedError, ProgrammingError |