From 6fc719b4b1a6f51a7717680c491be241c160c97b Mon Sep 17 00:00:00 2001 From: adustman Date: Fri, 7 Sep 2012 17:30:36 +0000 Subject: [PATCH] Make the insert_values regex case-insensitive. Fixes #3511137 --- MySQLdb/MySQLdb/cursors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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