mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Stricter regex for finding INSERT values
([ #505295 ] Wrong regexp in executemany() function.)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user