forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit251cf2e
committed
Fix minor deficiencies in XMLTABLE, xpath(), xmlexists()
Correctly process nodes of more types than previously. In some cases,nodes were being ignored (nothing was output); in other cases, trying toreturn them resulted in errors about unrecognized nodes. In yet othercases, necessary escaping (of XML special characters) was not beingdone. Fix all those (as far as the authors could find) and addregression tests cases verifying the new behavior.I (Álvaro) was of two minds about backpatching these changes. They doseem bugfixes that would benefit most users of the affected functions;but on the other hand it would change established behavior in minorreleases, so it seems prudent not to.Authors: Pavel Stehule, Markus Winand, Chapman FlackDiscussion:https://postgr.es/m/CAFj8pRA6J25CtAZ2TuRvxK3gat7-bBUYh0rfE2yM7Hj9GD14Dg@mail.gmail.comhttps://postgr.es/m/8BDB0627-2105-4564-AA76-7849F028B96E@winand.atThe elephant in the room as pointed out by Chapman Flack, not fixed inthis commit, is that we still have XMLTABLE operating on XPath 1.0instead of the standard-mandated XQuery (or even its subset XPath 2.0).Fixing that is a major undertaking, however.1 parent1d33858 commit251cf2e
6 files changed
+164
-78
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11010 | 11010 |
| |
11011 | 11011 |
| |
11012 | 11012 |
| |
11013 |
| - | |
11014 |
| - | |
11015 |
| - | |
| 11013 | + | |
| 11014 | + | |
| 11015 | + | |
11016 | 11016 |
| |
11017 | 11017 |
| |
11018 | 11018 |
| |
|
Lines changed: 86 additions & 69 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1176 | 1176 |
| |
1177 | 1177 |
| |
1178 | 1178 |
| |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1179 | 1209 |
| |
1180 | 1210 |
| |
1181 | 1211 |
| |
| |||
3678 | 3708 |
| |
3679 | 3709 |
| |
3680 | 3710 |
| |
3681 |
| - | |
3682 |
| - | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
3683 | 3715 |
| |
3684 | 3716 |
| |
3685 | 3717 |
| |
3686 | 3718 |
| |
3687 | 3719 |
| |
3688 | 3720 |
| |
3689 |
| - | |
| 3721 | + | |
3690 | 3722 |
| |
3691 | 3723 |
| |
3692 | 3724 |
| |
| |||
4479 | 4511 |
| |
4480 | 4512 |
| |
4481 | 4513 |
| |
4482 |
| - | |
4483 |
| - | |
4484 |
| - | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
4485 | 4517 |
| |
4486 | 4518 |
| |
4487 | 4519 |
| |
| |||
4494 | 4526 |
| |
4495 | 4527 |
| |
4496 | 4528 |
| |
4497 |
| - | |
4498 |
| - | |
4499 |
| - | |
4500 |
| - | |
4501 |
| - | |
4502 |
| - | |
4503 |
| - | |
4504 |
| - | |
4505 |
| - | |
4506 |
| - | |
| 4529 | + | |
4507 | 4530 |
| |
4508 |
| - | |
4509 |
| - | |
4510 |
| - | |
4511 |
| - | |
4512 |
| - | |
4513 |
| - | |
4514 |
| - | |
4515 |
| - | |
4516 |
| - | |
4517 |
| - | |
4518 |
| - | |
4519 |
| - | |
4520 |
| - | |
4521 |
| - | |
4522 |
| - | |
4523 |
| - | |
4524 |
| - | |
| 4531 | + | |
4525 | 4532 |
| |
4526 |
| - | |
4527 |
| - | |
4528 |
| - | |
4529 |
| - | |
4530 |
| - | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
4531 | 4539 |
| |
4532 |
| - | |
4533 |
| - | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
4534 | 4545 |
| |
4535 |
| - | |
4536 |
| - | |
| 4546 | + | |
4537 | 4547 |
| |
4538 | 4548 |
| |
4539 | 4549 |
| |
4540 |
| - | |
4541 |
| - | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
4542 | 4559 |
| |
4543 | 4560 |
| |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
4544 | 4567 |
| |
4545 |
| - | |
4546 |
| - | |
4547 |
| - | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
4548 | 4575 |
| |
4549 |
| - | |
| 4576 | + | |
| 4577 | + | |
4550 | 4578 |
| |
4551 |
| - | |
4552 |
| - | |
4553 |
| - | |
4554 |
| - | |
4555 |
| - | |
4556 |
| - | |
4557 |
| - | |
4558 |
| - | |
4559 |
| - | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
4560 | 4583 |
| |
4561 |
| - | |
4562 |
| - | |
4563 |
| - | |
4564 |
| - | |
4565 |
| - | |
4566 |
| - | |
4567 |
| - | |
4568 |
| - | |
4569 |
| - | |
4570 |
| - | |
| 4584 | + | |
4571 | 4585 |
| |
4572 |
| - | |
| 4586 | + | |
4573 | 4587 |
| |
4574 |
| - | |
| 4588 | + | |
| 4589 | + | |
| 4590 | + | |
| 4591 | + | |
4575 | 4592 |
| |
4576 | 4593 |
| |
4577 | 4594 |
| |
|
Lines changed: 24 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1210 | 1210 |
| |
1211 | 1211 |
| |
1212 | 1212 |
| |
1213 |
| - | |
1214 |
| - | |
1215 |
| - | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1216 | 1216 |
| |
1217 | 1217 |
| |
1218 | 1218 |
| |
| |||
1493 | 1493 |
| |
1494 | 1494 |
| |
1495 | 1495 |
| |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + |
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1343 | 1343 |
| |
1344 | 1344 |
| |
1345 | 1345 |
| |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + |
Lines changed: 24 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1190 | 1190 |
| |
1191 | 1191 |
| |
1192 | 1192 |
| |
1193 |
| - | |
1194 |
| - | |
1195 |
| - | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
| |||
1473 | 1473 |
| |
1474 | 1474 |
| |
1475 | 1475 |
| |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + |
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
595 | 595 |
| |
596 | 596 |
| |
597 | 597 |
| |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + |
0 commit comments
Comments
(0)