8000 Fixes returned ids in multiple_insert for mysqldb (Issue 443 web.py) by nlaurens · Pull Request #447 · webpy/webpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixes returned ids in multiple_insert for mysqldb (Issue 443 web.py) #447

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

Closed
wants to merge 1 commit into from

Conversation

nlaurens
Copy link
@nlaurens nlaurens commented Mar 4, 2018

Fix for issue #446 . This is my first pull request to this awesome project ever, if there is anything that I can do to test/help for the merge don't hesitate to let me know.

multiple_insert assumes the returned id is the ID of the last item
in the rows. Mysql actually returns the id of the first row. Fix
does not alter behaviour for other dbs. Note, that for postgres
and sqllite the current behaviour is correct.
iredmail added a commit that referenced this pull request Sep 16, 2019
- Fixed incorrect returned insert ids with `multiple_insert()`. Tested with MariaDB-10.1.29 on Ubuntu 18.04, and PostgreSQL-11.5 on OpenBSD 6.5.
- Update ChangeLog.txt.

Fixes #447
Fixes #263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0