forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c3b2d2
committed
Fix wrong assertion and poor error messages in "COPY (query) TO".
If the query is rewritten into a NOTIFY command by a DO INSTEADrule, we'd get an assertion failure, or in non-assert buildsissue a rather confusing error message. Improve that.Also fix a longstanding grammar mistake in a nearby error message.Per bug #18664 from Alexander Lakhin. Back-patch to all supportedbranches.Tender Wang and Tom LaneDiscussion:https://postgr.es/m/18664-ffd0ebc2386598df@postgresql.org1 parent22665f2 commit6c3b2d2
File tree
3 files changed
+17
-5
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+17
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
485 |
| - | |
| 485 | + | |
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| |||
499 | 499 |
| |
500 | 500 |
| |
501 | 501 |
| |
502 |
| - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 |
| |
504 | 508 |
| |
505 | 509 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 |
| |
84 | 88 |
| |
85 | 89 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 |
| |
70 | 74 |
| |
71 | 75 |
| |
|
0 commit comments
Comments
(0)