forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite32cb8d
committed
Fix namespace handling in xpath function
Previously, the xml value resulting from an xpath query would not havenamespace declarations if the namespace declarations were attached toan ancestor element in the input xml value. That means the output valuewas not correct XML. Fix that by running the result value throughxmlCopyNode(), which produces the correct namespace declarations.Author: Ali Akbar <the.apaan@gmail.com>1 parent1619442 commite32cb8d
4 files changed
+55
-8
lines changedLines changed: 26 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
144 |
| - | |
| 144 | + | |
145 | 145 |
| |
146 |
| - | |
| 146 | + | |
| 147 | + | |
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
| |||
3606 | 3607 |
| |
3607 | 3608 |
| |
3608 | 3609 |
| |
3609 |
| - | |
| 3610 | + | |
3610 | 3611 |
| |
3611 | 3612 |
| |
3612 | 3613 |
| |
3613 | 3614 |
| |
3614 | 3615 |
| |
3615 | 3616 |
| |
| 3617 | + | |
3616 | 3618 |
| |
3617 | 3619 |
| |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
3618 | 3632 |
| |
3619 | 3633 |
| |
3620 |
| - | |
| 3634 | + | |
3621 | 3635 |
| |
3622 | 3636 |
| |
3623 | 3637 |
| |
3624 | 3638 |
| |
| 3639 | + | |
3625 | 3640 |
| |
3626 | 3641 |
| |
3627 | 3642 |
| |
3628 | 3643 |
| |
| 3644 | + | |
3629 | 3645 |
| |
3630 | 3646 |
| |
3631 | 3647 |
| |
| |||
3667 | 3683 |
| |
3668 | 3684 |
| |
3669 | 3685 |
| |
3670 |
| - | |
| 3686 | + | |
| 3687 | + | |
3671 | 3688 |
| |
3672 | 3689 |
| |
3673 | 3690 |
| |
| |||
3689 | 3706 |
| |
3690 | 3707 |
| |
3691 | 3708 |
| |
3692 |
| - | |
| 3709 | + | |
| 3710 | + | |
3693 | 3711 |
| |
3694 | 3712 |
| |
3695 | 3713 |
| |
| |||
3893 | 3911 |
| |
3894 | 3912 |
| |
3895 | 3913 |
| |
3896 |
| - | |
| 3914 | + | |
3897 | 3915 |
| |
3898 |
| - | |
| 3916 | + | |
3899 | 3917 |
| |
3900 | 3918 |
| |
3901 | 3919 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
587 | 602 |
| |
588 | 603 |
| |
589 | 604 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
501 | 513 |
| |
502 | 514 |
| |
503 | 515 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| 177 | + | |
| 178 | + | |
177 | 179 |
| |
178 | 180 |
| |
179 | 181 |
| |
|
0 commit comments
Comments
(0)