forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit43830ec
committed
Fix parsing of qualified relation names in RETURNING.
Given a qualified refname, refnameNamespaceItem() will search for amatching namespace item by relation OID, rather than by name. Commit80feb72 broke this by adding additional namespace items for OLD andNEW in the RETURNING list, which have the same relation OID, causingambiguity. Fix this by ignoring these in the search, which is correctsince they don't match the qualified relation name, and so there is noreal ambiguity.Reported by Richard Guo.Discussion:https://postgr.es/m/CAMbWs49MBjWYWDROJ8MZ%3DY%2B4UgRQa10wzik1tWrD5yto9eoGXg%40mail.gmail.com1 parente24d770 commit43830ec
File tree
3 files changed
+23
-1
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+23
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 |
| |
130 | 133 |
| |
131 | 134 |
| |
| |||
255 | 258 |
| |
256 | 259 |
| |
257 | 260 |
| |
| 261 | + | |
| 262 | + | |
| 263 | + | |
258 | 264 |
| |
259 | 265 |
| |
260 | 266 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
766 | 766 |
| |
767 | 767 |
| |
768 | 768 |
| |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
769 | 779 |
| |
770 | 780 |
| |
771 | 781 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
315 | 321 |
| |
316 | 322 |
| |
317 | 323 |
| |
|
0 commit comments
Comments
(0)