forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit074add6
committed
Fix tab completion of "SET variable TO|=" to not offer bogus completions.
Don't think that the context "UPDATE tab SET var =" is a GUC-settingcommand.If we have "SET var =" but the "var" is not a known GUC variable,don't offer any completions. The most likely explanation is thatwe've misparsed the context and it's not really a GUC-setting command.Per gripe from Ken Tanzer. Back-patch to 9.6. The issue existsfurther back, but before 9.6 the code looks very different and itdoesn't actually know whether the "var" name matches anything,so I desisted from trying to fix it.Discussion:https://postgr.es/m/CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com1 parent4b85f20 commit074add6
1 file changed
+26
-13
lines changedLines changed: 26 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3532 | 3532 |
| |
3533 | 3533 |
| |
3534 | 3534 |
| |
3535 |
| - | |
3536 |
| - | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
3537 | 3542 |
| |
3538 | 3543 |
| |
3539 | 3544 |
| |
| |||
3556 | 3561 |
| |
3557 | 3562 |
| |
3558 | 3563 |
| |
3559 |
| - | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
3560 | 3570 |
| |
3561 |
| - | |
| 3571 | + | |
| 3572 | + | |
| 3573 | + | |
3562 | 3574 |
| |
3563 |
| - | |
3564 |
| - | |
3565 |
| - | |
3566 |
| - | |
3567 |
| - | |
3568 |
| - | |
3569 |
| - | |
3570 |
| - | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
3571 | 3584 |
| |
3572 |
| - | |
3573 | 3585 |
| |
| 3586 | + | |
3574 | 3587 |
| |
3575 | 3588 |
| |
3576 | 3589 |
| |
|
0 commit comments
Comments
(0)