Skip to content

Commit

Permalink
Allow semicolon at the end of bulk insert query (PyMySQL#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guangyang Li authored and methane committed Feb 28, 2017
1 parent 557d0d9 commit 103a00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymysql/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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)


Expand Down

0 comments on commit 103a00d

Please sign in to comment.