forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf026c16
committed
Fix MERGE's test for unreachable WHEN clauses.
The former code would only detect an unreachable WHEN clause if it hadan AND condition. Fix, so that unreachable unconditional WHEN clausesare also detected.Back-patch to v15, where MERGE was added.Discussion:https://postgr.es/m/CAEZATCVQ=7E2z4cSBB49jjeGGsB6WeoYQY32NDeSvcHiLUZ=ow@mail.gmail.com1 parentd952373 commitf026c16
File tree
3 files changed
+5
-5
lines changed- src
- backend/parser
- test/regress
- expected
- sql
3 files changed
+5
-5
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 158 | + | |
161 | 159 |
| |
162 | 160 |
| |
163 | 161 |
| |
| 162 | + | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
659 | 659 |
| |
660 | 660 |
| |
661 | 661 |
| |
662 |
| - | |
| 662 | + | |
663 | 663 |
| |
664 | 664 |
| |
665 | 665 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
441 |
| - | |
| 441 | + | |
442 | 442 |
| |
443 | 443 |
| |
444 | 444 |
| |
|
0 commit comments
Comments
(0)