@@ -40,11 +40,12 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
40
40
41
41
Scenario : Update single multivalue without selector
42
42
Given I execute the "UPDATE [nt:unstructured] SET tags = array_replace(tags, 'Planes', 'Rockets') WHERE tags = 'Planes'" command
43
+ Then the command should not fail
43
44
And I save the session
44
45
Then the command should not fail
45
46
And I should see the following:
46
47
"""
47
- 1 row(s) affected
48
+ 2 row(s) affected
48
49
"""
49
50
And the node at "/cms/articles/article1" should have the property "tags" with value "Rockets" at index "0"
50
51
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "2"
@@ -66,7 +67,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
66
67
Then the command should not fail
67
68
And I should see the following:
68
69
"""
69
- 1 row(s) affected
70
+ 2 row(s) affected
70
71
"""
71
72
And the node at "/cms/articles/article1" should have the property "tags" with value "Trains" at index "0"
72
73
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "1"
@@ -77,7 +78,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
77
78
Then the command should not fail
78
79
And I should see the following:
79
80
"""
80
- 1 row(s) affected
81
+ 2 row(s) affected
81
82
"""
82
83
And the node at "/cms/articles/article1" should have the property "tags" with value "Planes" at index "0"
83
84
And the node at "/cms/articles/article1" should have the property "tags" with value "Automobiles" at index "2"
@@ -89,7 +90,7 @@ Feature: Execute a a raw UPDATE query in JCR_SQL2
89
90
Then the command should not fail
90
91
And I should see the following:
91
92
"""
92
- 1 row(s) affected
93
+ 2 row(s) affected
93
94
"""
94
95
And the node at "/cms/articles/article1" should have the property "tags" with value "Planes" at index "0"
95
96
And the node at "/cms/articles/article1" should have the property "tags" with value "Kite" at index "1"
0 commit comments