Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /MySQLdb/cursors.py [2d6a35] .. [7a60c4] Maximize Restore

  Switch to side-by-side view

--- a/MySQLdb/cursors.py
+++ b/MySQLdb/cursors.py
@@ -14,11 +14,9 @@
 import sys
 import weakref
 
-INSERT_VALUES = re.compile(r"\svalues\s*"
-                           r"(\(((?<!\\)'[^\)]*?\)[^\)]*(?<!\\)?'"
-                           r"|[^\(\)]|"
-                           r"(?:\([^\)]*\))"
-                           r")+\))")
+INSERT_VALUES = re.compile(r"(?P<start>.+values\s*)"
+                           r"(?P<values>\(((?<!\\)'[^\)]*?\)[^\)]*(?<!\\)?'|[^\(\)]|(?:\([^\)]*\)))+\))"
+                           r"(?P<end>.*)", re.I)
 
 
 class Cursor(object):