forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit04c0897
committed
psql: Add ignore_slash_options in bind's inactive branch
All commands accepting arguments, handling them with OT_NORMAL, OT_SQLIDor OT_SQLIDHACK, should call ignore_slash_options() in inactive branchto scan and discard extra arguments. All the backslash commands thathandle arguments do so, except \bind.This commit adds the missing ignore_slash_options to \bind's inactivebranch. This inconsistency is a logic bug, however the behavior happensto be unchanged as any extra arguments are discarded later inHandleSlashCmds(), so no backpatch is done.While on it, this adds \bind to the list of backslash commands whereinactive \if branches are checked in the tests for psql.Reported-by: Jelte Fennema-NioAuthor: Anthonin BonnefoyDiscussion:https://postgr.es/m/CAGECzQR1+udGKz+FbHiCQ7CWDiF1fCGi2xYuvQUODdMAfJbaLA@mail.gmail.com1 parent3ada0d2 commit04c0897
3 files changed
+4
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| 489 | + | |
| 490 | + | |
489 | 491 |
| |
490 | 492 |
| |
491 | 493 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4506 | 4506 |
| |
4507 | 4507 |
| |
4508 | 4508 |
| |
| 4509 | + | |
4509 | 4510 |
| |
4510 | 4511 |
| |
4511 | 4512 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
989 | 989 |
| |
990 | 990 |
| |
991 | 991 |
| |
| 992 | + | |
992 | 993 |
| |
993 | 994 |
| |
994 | 995 |
| |
|
0 commit comments
Comments
(0)