-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix(deep): prevent false unique constraint errors and combine delete queries #781
Merged
Merged
Changes from 44 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
2887ca0
fix(deep): prevent false unique constraint errors
David-Kunz aa73162
single loop
David-Kunz 180cfba
single delete statement
David-Kunz 5672f40
simpler queries for single keys
David-Kunz f0f1862
simpler
David-Kunz fa7cfec
.
David-Kunz c64d4a7
simpler
David-Kunz 57f3e89
use virtual instead of IsActiveEntity
David-Kunz 6f15817
Merge branch 'main' into no-false-unique-constraint-errors
David-Kunz 58f9c53
added test
David-Kunz dcc5536
.
David-Kunz e0e0a70
.
David-Kunz 466d355
.
David-Kunz e79376b
.
David-Kunz 3160f05
.
David-Kunz cd841c9
.
David-Kunz 43b0504
.
David-Kunz b605995
.
David-Kunz f05b224
.
David-Kunz b7b9837
Update db-service/lib/deep-queries.js
David-Kunz 52e6d91
mv cds.test
David-Kunz 7802d5e
Update test/compliance/UPDATE.test.js
David-Kunz 9c6a519
no single key difference
David-Kunz e3895e7
.
David-Kunz d1a6874
Merge branch 'main' into no-false-unique-constraint-errors
David-Kunz dd35333
.
David-Kunz 194b888
.
David-Kunz 97c0c74
.
David-Kunz 2673110
.
David-Kunz 1e5c1d4
.
David-Kunz 7f72386
.
David-Kunz fff3ed4
.bug
David-Kunz 8e19a2e
use ROOT tag
David-Kunz 7189dfd
Merge branch 'main' into testing
David-Kunz 99bcef2
.
David-Kunz e39b8fa
explanation
David-Kunz 43012c3
explanation
David-Kunz ec5326b
bug needs to be fixed
David-Kunz b552a8f
simplify
David-Kunz 6b75734
Merge branch 'main' into no-false-unique-constraint-errors
David-Kunz 770deff
.
David-Kunz a9290dd
.
David-Kunz 758fa4c
.
David-Kunz 537874c
Merge branch 'main' into no-false-unique-constraint-errors
David-Kunz c44ba9d
Merge branch 'main' into no-false-unique-constraint-errors
johannes-vogel 288007d
.
David-Kunz d01f666
.
David-Kunz 87007ac
.
David-Kunz 94a40e6
.
David-Kunz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace complex.uniques; | ||
|
||
entity Books { | ||
key ID : Integer; | ||
title : String(111); | ||
pages : Composition of many Pages on pages.book = $self; | ||
} | ||
|
||
@assert.unique: { number: [number, book] } | ||
entity Pages { | ||
key ID : Integer; | ||
book : Association to Books; | ||
number : Integer; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.