aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ri/src/test/resources/data/fragment.sql
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2021-09-29 13:44:53 +0100
committerDylanB95EST <dylan.byrne@est.tech>2021-09-29 13:44:53 +0100
commit8bf710c85d26ddd4586554868473b070ca68a70c (patch)
tree28e9dd1dce1410e46618a7e7379f948bee3084c7 /cps-ri/src/test/resources/data/fragment.sql
parentfdcb36fa9db642df3c47637d32f4e7ac5dd347e8 (diff)
CPS-594: Exception when updating list node PATCH
SQL ConstraintViolationException updating the list node element using PATCH List node API - Took advantage of replaceDataNodeTree to replace list node children recursively - Added functionality to exclude the updated dataNodes when removing the list node descendants Issue-ID: CPS-594 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Signed-off-by: DylanB95EST <dylan.byrne@est.tech> Change-Id: Idbf580fab05581513b52327d6895b9e39b4cf470 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'cps-ri/src/test/resources/data/fragment.sql')
-rwxr-xr-xcps-ri/src/test/resources/data/fragment.sql9
1 files changed, 8 insertions, 1 deletions
diff --git a/cps-ri/src/test/resources/data/fragment.sql b/cps-ri/src/test/resources/data/fragment.sql
index 886e6e1751..f6e887e017 100755
--- a/cps-ri/src/test/resources/data/fragment.sql
+++ b/cps-ri/src/test/resources/data/fragment.sql
@@ -61,4 +61,11 @@ INSERT INTO FRAGMENT (ID, DATASPACE_ID, ANCHOR_ID, PARENT_ID, XPATH, ATTRIBUTES)
(4215, 1001, 3003, 4214, '/parent-203/child-203', '{}'),
(4216, 1001, 3003, 4214, '/parent-203/child-204[@key="A"]', '{"key": "A"}'),
(4217, 1001, 3003, 4214, '/parent-203/child-204[@key="X"]', '{"key": "X"}'),
- (4218, 1001, 3003, 4217, '/parent-203/child-204[@key="X"]/grand-child-204[@key2="Y"]', '{"key": "X", "key2": "Y"}'); \ No newline at end of file
+ (4218, 1001, 3003, 4217, '/parent-203/child-204[@key="X"]/grand-child-204[@key2="Y"]', '{"key": "X", "key2": "Y"}'),
+ (4219, 1001, 3003, null, '/parent-204[@key="L"]', '{"key": "L"}'),
+ (4220, 1001, 3003, 4219, '/parent-204[@key="L"]/child-210[@key="M"]', '{"key": "M"}'),
+ (4221, 1001, 3003, null, '/parent-205', '{"leaf-value": "original"}'),
+ (4222, 1001, 3003, 4221, '/parent-205/child-205', '{}'),
+ (4223, 1001, 3003, 4221, '/parent-205/child-205[@key="X"]', '{"key": "X"}'),
+ (4224, 1001, 3003, 4223, '/parent-205/child-205[@key="X"]/grand-child-206[@key="Y"]', '{"key": "Y", "key2": "Z"}'),
+ (4225, 1001, 3003, 4223, '/parent-205/child-205[@key="X"]/grand-child-206[@key="Y" and @key2="Z"]', '{"key": "Y", "key2": "Z"}'); \ No newline at end of file