forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc06e355
committed
Don't request pretty-printed output from xmlNodeDump().
xml.c passed format = 1 to xmlNodeDump(), resulting in sometimes gettingextra whitespace (newlines + spaces) in the output. We don't really wantthat, first because whitespace might be semantically significant in someXML uses, and second because it happens only very inconsistently. Onlyone case in our regression tests is affected.This potentially affects the results of xpath() and the XMLTABLE construct,when emitting nodeset values.Note that the older code in contrib/xml2 doesn't do this; it seemsto have been an aboriginal bad decision in commitea3b212.While this definitely seems like a bug to me, the small number ofcomplaints to date argues against back-patching a behavioral change.Hence, fix in HEAD only, at least for now.Per report from Jean-Marc Voillequin.Discussion:https://postgr.es/m/1EC8157EB499BF459A516ADCF135ADCE3A23A9CA@LON-WGMSX712.ad.moodys.net1 parentccae190 commitc06e355
3 files changed
+7
-13
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3857 | 3857 |
| |
3858 | 3858 |
| |
3859 | 3859 |
| |
3860 |
| - | |
| 3860 | + | |
3861 | 3861 |
| |
3862 | 3862 |
| |
3863 | 3863 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
663 | 660 |
| |
664 | 661 |
| |
665 | 662 |
| |
|
Lines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
637 |
| - | |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
642 |
| - | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
643 | 640 |
| |
644 | 641 |
| |
645 | 642 |
| |
|
0 commit comments
Comments
(0)