You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@billy1624 I'm not sure what the original problem was, but could RETURNING be supported for SQLite now?
Motivation
I have a query that has an ON CONFLICT and I want to use exec_with_returning, however last_insert_rowid is not set for SQLite when there's a conflict, so there's no way to figure out which row was updated. My query looks like:
@billy1624 I'm not sure what the original problem was, but could RETURNING be supported for SQLite now?
Motivation
I have a query that has an
ON CONFLICT
and I want to useexec_with_returning
, howeverlast_insert_rowid
is not set for SQLite when there's a conflict, so there's no way to figure out which row was updated. My query looks like:This works fine on Postgres but not SQLite
Proposed Solutions
Get RETURNING working for SQLite
Current Workarounds
You can do an extra SELECT query instead of using ON CONFLICT
The text was updated successfully, but these errors were encountered: