Skip to content

Commit

Permalink
Allow semicolon at the end of bulk insert query
Browse files Browse the repository at this point in the history
  • Loading branch information
gyli authored and methane committed Mar 2, 2017
1 parent 948def4 commit 2b6123e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MySQLdb/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 2b6123e

Please sign in to comment.