-
Notifications
You must be signed in to change notification settings - Fork 510
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
execute() returning void vs Autoincrement #1015
Comments
ok this is not working since i have no access to the connection that does the inserting (calling last_insert_rowid() in a new connection returns 0). |
This PR in SdkSearch might help - https://github.com/JakeWharton/SdkSearch/pull/135/files |
exactly what i was looking for ;) thanks |
How do still get the last inserted id when you're using auto increment? I get that you can check wether you should update or insert but what if I need to insert a row and then use that inserted id to also update on another table? |
SELECT last_insert_rowid()
…On Thu, Oct 18, 2018 at 8:22 AM David Kraus ***@***.***> wrote:
ok this is not working since i have no access to the connection that does
the inserting (calling last_insert_rowid() in a new connection returns 0).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1015 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEauE-o3B1jwChm8gBIY2IWfrZxY4ks5umHKEgaJpZM4XtReG>
.
|
I just updated to 1.0.0-rc2. I saw that you changed the execute function to return void. The thing is that i now no longer get the id that was inserted (i use autoincrement).
I think to get around this i can just manually call last_insert_rowid() or am i missing something here?
The text was updated successfully, but these errors were encountered: