summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2002-01-29 01:21:21 +0000
committeradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2002-01-29 01:21:21 +0000
commit3bc6fb42af2f46f3ad1cff44e33dc845956c1fe1 (patch)
tree78cb3d80c16c8c17a18bf7b54de697987c6f3e0f
parentc5acfe5ace379abb99f6a9898101d5b443cc126c (diff)
downloadmysqldb1-3bc6fb42af2f46f3ad1cff44e33dc845956c1fe1.tar.gz
Stricter regex for finding INSERT values
([ #505295 ] Wrong regexp in executemany() function.)
-rw-r--r--MySQLdb/MySQLdb/cursors.py2
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