projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea6c9d
)
Prevent psql tab completion in SET from adding TO when the equals sign
author
Bruce Momjian
<bruce@momjian.us>
Tue, 28 Aug 2012 16:53:31 +0000
(12:53 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 28 Aug 2012 16:53:31 +0000
(12:53 -0400)
has no space before it.
Report by Erik Rijkers
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 8a748771983a0670031dcdc7d86fd3842141daaa..bfba1ddd93e04bccb84a4ead83b3ba684d677b45 100644
(file)
--- 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 */