8000 allow no whitespaces between `VALUES` and `(` when do bulk insert/replace by uwydoc · Pull Request #597 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

allow no whitespaces between VALUES and ( when do bulk insert/replace #597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
allow no whitespaces between VALUES and ( when do bulk insert/rep…
…lace
  • Loading branch information
uwydoc authored Aug 30, 2017
commit 3dd5a8aef5ac6e467fde6c96b605bc6a2c1930c8
2 changes: 1 addition & 1 deletion pymysql/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#: executemany only suports simple bulk insert.
#: You can use it to load large dataset.
RE_INSERT_VALUES = re.compile(
r"\s*((?:INSERT|REPLACE)\s.+\sVALUES?\s+)" +
r"\s*((?:INSERT|REPLACE)\s.+\sVALUES?\s*)" +
r"(\(\s*(?:%s|%\(.+\)s)\s*(?:,\s*(?:%s|%\(.+\)s)\s*)*\))" +
r"(\s*(?:ON DUPLICATE.*)?);?\s*\Z",
re.IGNORECASE | re.DOTALL)
Expand Down
0