Allow semicolon at the end of bulk insert query (#545)
This commit is contained in:
committed by
INADA Naoki
parent
557d0d90a5
commit
103a00d4ee
@@ -14,7 +14,7 @@ from . import err
|
||||
RE_INSERT_VALUES = re.compile(
|
||||
r"\s*((?:INSERT|REPLACE)\s.+\sVALUES?\s+)" +
|
||||
r"(\(\s*(?:%s|%\(.+\)s)\s*(?:,\s*(?:%s|%\(.+\)s)\s*)*\))" +
|
||||
r"(\s*(?:ON DUPLICATE.*)?)\Z",
|
||||
r"(\s*(?:ON DUPLICATE.*)?);?\s*\Z",
|
||||
re.IGNORECASE | re.DOTALL)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user