forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit61b1213
committed
Fix XMLTABLE() deparsing to quote namespace names if necessary.
When deparsing an XMLTABLE() expression, XML namespace names were notquoted. However, since they are parsed as ColLabel tokens, some namesrequire double quotes to ensure that they are properly interpreted.Fix by using quote_identifier() in the deparsing code.Back-patch to all supported versions.Dean Rasheed, reviewed by Tom Lane.Discussion:https://postgr.es/m/CAEZATCXTpAS%3DncfLNTZ7YS6O5puHeLg_SUYAit%2Bcs7wsrd9Msg%40mail.gmail.com1 parente98df02 commit61b1213
File tree
5 files changed
+26
-13
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
5 files changed
+26
-13
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11621 | 11621 |
| |
11622 | 11622 |
| |
11623 | 11623 |
| |
11624 |
| - | |
| 11624 | + | |
| 11625 | + | |
11625 | 11626 |
| |
11626 | 11627 |
| |
11627 | 11628 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1379 | 1379 |
| |
1380 | 1380 |
| |
1381 | 1381 |
| |
1382 |
| - | |
1383 |
| - | |
| 1382 | + | |
| 1383 | + | |
1384 | 1384 |
| |
1385 |
| - | |
| 1385 | + | |
1386 | 1386 |
| |
1387 | 1387 |
| |
1388 | 1388 |
| |
1389 | 1389 |
| |
1390 | 1390 |
| |
1391 | 1391 |
| |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1392 | 1396 |
| |
1393 | 1397 |
| |
1394 | 1398 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1046 | 1046 |
| |
1047 | 1047 |
| |
1048 | 1048 |
| |
1049 |
| - | |
1050 |
| - | |
| 1049 | + | |
| 1050 | + | |
1051 | 1051 |
| |
1052 |
| - | |
| 1052 | + | |
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
| |||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
| 1061 | + | |
| 1062 | + | |
1061 | 1063 |
| |
1062 | 1064 |
| |
1063 | 1065 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1365 | 1365 |
| |
1366 | 1366 |
| |
1367 | 1367 |
| |
1368 |
| - | |
1369 |
| - | |
| 1368 | + | |
| 1369 | + | |
1370 | 1370 |
| |
1371 |
| - | |
| 1371 | + | |
1372 | 1372 |
| |
1373 | 1373 |
| |
1374 | 1374 |
| |
1375 | 1375 |
| |
1376 | 1376 |
| |
1377 | 1377 |
| |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1378 | 1382 |
| |
1379 | 1383 |
| |
1380 | 1384 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
442 |
| - | |
443 |
| - | |
| 442 | + | |
| 443 | + | |
444 | 444 |
| |
445 |
| - | |
| 445 | + | |
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| 449 | + | |
| 450 | + | |
449 | 451 |
| |
450 | 452 |
| |
451 | 453 |
| |
|
0 commit comments
Comments
(0)