Skip to content

sql: use sqlite3_last_insert_rowid instead of SELECT - #2355

Merged
link2xt merged 1 commit into
masterfrom
sql-insert
Apr 17, 2021
Merged

link2xt merged 1 commit into
masterfrom
sql-insert

Conversation

@link2xt

@link2xt link2xt commented Apr 17, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@link2xt
link2xt requested review from dignifiedquire and r10s April 17, 2021 03:22
@link2xt

link2xt commented Apr 17, 2021

Copy link
Copy Markdown
Collaborator Author

This also actually returns an error in case of failure to insert the row instead of returning a row ID of 0 which is then passed around until some ensure! catches special ID.

This was referenced Apr 17, 2021
@link2xt
link2xt merged commit e35a8d4 into master Apr 17, 2021
@link2xt
link2xt deleted the sql-insert branch April 17, 2021 19:59
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.

2 participants