forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita552e3b
committed
Fix parsetree representation of XMLTABLE(XMLNAMESPACES(DEFAULT ...)).
The original coding for XMLTABLE thought it could represent a defaultnamespace by a T_String Value node with a null string pointer. That'snot okay, though; in particular outfuncs.c/readfuncs.c are not on boardwith such a representation, meaning you'll get a null pointer crashif you try to store a view or rule containing this construct.To fix, change the parsetree representation so that we have a NULLlist element, instead of a bogus Value node.This isn't really a functional limitation since default XML namespacesaren't yet implemented in the executor; you'd just get "DEFAULTnamespace is not supported" anyway. But crashes are not nice, soback-patch to v10 where this syntax was added. Ordinarily we'd considera parsetree representation change to be un-backpatchable; but sinceexisting releases would crash on the way to storing such constructs,there can't be any existing views/rules to be incompatible with.Per report from Andrey Lepikhov.Discussion:https://postgr.es/m/3690074f-abd2-56a9-144a-aa5545d7a291@postgrespro.ru1 parent3ea7e01 commita552e3b
File tree
5 files changed
+23
-15
lines changed- src
- backend
- executor
- parser
- utils/adt
- include/nodes
5 files changed
+23
-15
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 |
| - | |
| 373 | + | |
374 | 374 |
| |
| 375 | + | |
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
| |||
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
| 384 | + | |
| 385 | + | |
| 386 | + | |
383 | 387 |
| |
384 | 388 |
| |
385 | 389 |
| |
|
Lines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
772 | 772 |
| |
773 | 773 |
| |
774 | 774 |
| |
775 |
| - | |
| 775 | + | |
776 | 776 |
| |
777 | 777 |
| |
778 | 778 |
| |
| |||
893 | 893 |
| |
894 | 894 |
| |
895 | 895 |
| |
896 |
| - | |
| 896 | + | |
897 | 897 |
| |
898 |
| - | |
| 898 | + | |
899 | 899 |
| |
900 |
| - | |
| 900 | + | |
901 | 901 |
| |
902 | 902 |
| |
903 | 903 |
| |
904 |
| - | |
| 904 | + | |
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
| |||
915 | 915 |
| |
916 | 916 |
| |
917 | 917 |
| |
918 |
| - | |
919 |
| - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
920 | 921 |
| |
921 | 922 |
| |
922 | 923 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9618 | 9618 |
| |
9619 | 9619 |
| |
9620 | 9620 |
| |
9621 |
| - | |
| 9621 | + | |
9622 | 9622 |
| |
9623 | 9623 |
| |
9624 | 9624 |
| |
9625 | 9625 |
| |
9626 | 9626 |
| |
9627 | 9627 |
| |
9628 |
| - | |
| 9628 | + | |
9629 | 9629 |
| |
9630 | 9630 |
| |
9631 |
| - | |
| 9631 | + | |
9632 | 9632 |
| |
9633 | 9633 |
| |
9634 | 9634 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1476 | 1476 |
| |
1477 | 1477 |
| |
1478 | 1478 |
| |
1479 |
| - | |
1480 |
| - | |
| 1479 | + | |
| 1480 | + | |
1481 | 1481 |
| |
1482 | 1482 |
| |
1483 | 1483 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 |
| |
79 | 82 |
| |
80 | 83 |
| |
81 | 84 |
| |
82 |
| - | |
83 |
| - | |
| 85 | + | |
| 86 | + | |
84 | 87 |
| |
85 | 88 |
| |
86 | 89 |
| |
|
0 commit comments
Comments
(0)