diff options
author | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2002-01-29 01:21:21 +0000 |
---|---|---|
committer | adustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8> | 2002-01-29 01:21:21 +0000 |
commit | 3bc6fb42af2f46f3ad1cff44e33dc845956c1fe1 (patch) | |
tree | 78cb3d80c16c8c17a18bf7b54de697987c6f3e0f | |
parent | c5acfe5ace379abb99f6a9898101d5b443cc126c (diff) | |
download | mysqldb1-3bc6fb42af2f46f3ad1cff44e33dc845956c1fe1.tar.gz |
Stricter regex for finding INSERT values
([ #505295 ] Wrong regexp in executemany() function.)
-rw-r--r-- | MySQLdb/MySQLdb/cursors.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |