Stricter regex for finding INSERT values

([ #505295 ] Wrong regexp in executemany() function.)
This commit is contained in:
adustman
2002-01-29 01:21:21 +00:00
parent c5acfe5ace
commit 3bc6fb42af

View File

@@ -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