From 3bc6fb42af2f46f3ad1cff44e33dc845956c1fe1 Mon Sep 17 00:00:00 2001 From: adustman Date: Tue, 29 Jan 2002 01:21:21 +0000 Subject: [PATCH] Stricter regex for finding INSERT values ([ #505295 ] Wrong regexp in executemany() function.) --- MySQLdb/MySQLdb/cursors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQLdb/MySQLdb/cursors.py b/MySQLdb/MySQLdb/cursors.py index 4cdabf9..7abdfd6 100644 --- a/MySQLdb/MySQLdb/cursors.py +++ b/MySQLdb/MySQLdb/cursors.py @@ -6,7 +6,7 @@ default, MySQLdb uses the Cursor class. """ import re -insert_values = re.compile(r'values\s*(\(.+\))', re.IGNORECASE) +insert_values = re.compile(r'\svalues\s*(\(.+\))', re.IGNORECASE) from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \ DatabaseError, OperationalError, IntegrityError, InternalError, \ NotSupportedError, ProgrammingError