forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaaf15e5
committed
Ensure that xpath() escapes special characters in string values.
Without this it's possible for the output to not be legal XML, asillustrated by the added regression test cases.NB: this change will need to be called out as an incompatibility in the9.2 release notes, since it's possible somebody was relying on the oldbehavior, even though it's clearly wrong.Florian Pflug, reviewed by Radoslaw Smogura1 parent17a16ee commitaaf15e5
4 files changed
+31
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3537 | 3537 |
| |
3538 | 3538 |
| |
3539 | 3539 |
| |
3540 |
| - | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
3541 | 3545 |
| |
3542 | 3546 |
| |
3543 | 3547 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
592 | 604 |
| |
593 | 605 |
| |
594 | 606 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
504 | 504 |
| |
505 | 505 |
| |
506 | 506 |
| |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
507 | 519 |
| |
508 | 520 |
| |
509 | 521 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
| 179 | + | |
178 | 180 |
| |
179 | 181 |
| |
180 | 182 |
| |
|
0 commit comments
Comments
(0)