-
Notifications
You must be signed in to change notification settings - Fork 170
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
Sqlite syntax error with insertOnConflict
#589
Comments
Do you have a minimal reproduction example? |
Just ran into this too. This is my table declaration:
The insert:
Table creation SQL (autoMigrate):
Insertion SQL:
Results in:
Also with
|
I (kinda) figured out the problem -
However, |
When running this code:
insertOnConflict table (insertValues [tipRow]) anyConflict onConflictUpdateAll
I get a runtime error:SQLite3 returned ErrorError while attempting to perform prepare INSERT INTO "tip"("row_id", "row_slot", "row_block_id", "row_block_number") VALUES (?, ?, ?, ?) ON CONFLICT DO UPDATE SET "row_id" = "excluded"."row_id", "row_slot" = "excluded"."row_slot", "row_block_id" = "excluded"."row_block_id", "row_block_number" = "excluded"."row_block_number" near UPDATE: syntax error
If I execute this sql statement in the sqlite3 command line tool it works fine.
The text was updated successfully, but these errors were encountered: