forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3a137ab
committed
Add more test coverage for jsonpath "$.*" with arrays
There was no coverage for the code path to unwrap an array beforeapplying ".*" to it, so add tests to provide more coverage for bothobjects and arrays.This shows, for example, that no results are returned for an array ofscalars, and what results are returned when the array contains anobject. A few more scenarios are covered with the strict/lax modes andthe operator "@?".Author: David WheelerReported-by: David G. Johnston, Stepan NeretinDiscussion:https://postgr.es/m/A95346F9-6147-46E0-809E-532A485D71D6@justatheory.com1 parent5c571a3 commit3a137ab
File tree
2 files changed
+61
-0
lines changed- src/test/regress
- expected
- sql
2 files changed
+61
-0
lines changedLines changed: 50 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1135 | 1135 |
| |
1136 | 1136 |
| |
1137 | 1137 |
| |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1138 | 1188 |
| |
1139 | 1189 |
| |
1140 | 1190 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
244 | 255 |
| |
245 | 256 |
| |
246 | 257 |
| |
|
0 commit comments
Comments
(0)