diff options
| author | Bruce Momjian | 2012-08-28 16:53:31 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2012-08-28 16:53:31 +0000 |
| commit | 65b2ee27ad926f622f06c3a4029b621e8d72fb67 (patch) | |
| tree | f8bcf0ebf9276cc8287aa9982c902c80c823f3d2 | |
| parent | 5ea6c9d79882815d4cc1c3c302f415eb637466f2 (diff) | |
Prevent psql tab completion in SET from adding TO when the equals sign
has no space before it.
Report by Erik Rijkers
| -rw-r--r-- | src/bin/psql/tab-complete.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 8a748771983..bfba1ddd93e 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2842,6 +2842,7 @@ psql_completion(char *text, int start, int end) pg_strcasecmp(prev_wd, "TABLESPACE") != 0 && pg_strcasecmp(prev_wd, "SCHEMA") != 0 && prev_wd[strlen(prev_wd) - 1] != ')' && + prev_wd[strlen(prev_wd) - 1] != '=' && pg_strcasecmp(prev4_wd, "DOMAIN") != 0) COMPLETE_WITH_CONST("TO"); /* Suggest possible variable values */ |
