-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OnConflict to InsertValues (#61)
Fixes #50 Fixed `Returning.InsertBase[V[Expr]]` into `Returning.InsertBase[V[Column]]`, looks like an oversight, this basically enabled me to write an implicit in `OnConflictOps` that made this fix possible @lihaoyi I'm not sure how to organize tests in this case, I hope you could have an idea, because current `OnConflictTests` are based on functionality and they don't distinguish between internal implementation of two different insert modes: `InsertValues` and `InsertColumns`, I could have just duplicated the tests with `.insert.values(???)`, but it doesn't seem right. Another question is that there are kinda missing tests for `InsertSelect` and then conflicts, do you want me to add those or was it intentional to not have them? --------- Co-authored-by: nikitaglushchenko <[email protected]>
- Loading branch information
Showing
4 changed files
with
335 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.