Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Change getLastInsertID to use cursor.lastrowid from DB-API instead of hard coded query #56

Closed
wants to merge 1 commit into from
Closed

Change getLastInsertID to use cursor.lastrowid from DB-API instead of hard coded query #56

wants to merge 1 commit into from

Conversation

nocko
Copy link
Contributor

@nocko nocko commented Jul 2, 2015

Perhaps a controversial change? It seems preferable to me to punt this to the DB-API layer for implementation/optimization.

I don't think the SELECT hardcoded on the current implementation works on postgres (untested)... confusingly, this change may not help postgres support... but it doesn't break mysql nor sqlite.

@bmuller
Copy link
Owner

bmuller commented Jul 3, 2015

Merged in ad9125c. Good catch! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants