summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-12-31 11:06:43 -0500
committerRobert Haas <rhaas@postgresql.org>2014-12-31 11:06:43 -0500
commitc168c885776cd5d815611c10633ca04f699744e3 (patch)
tree57fab15d5d5e9eb31becacea23e03bed57c493c7 /src/bin
parent72dd233d3ef12da0f041bb3024deaa6d2950369c (diff)
downloadpostgresql-c168c885776cd5d815611c10633ca04f699744e3.tar.gz
Don't tab-complete COMMENT ON ... IS with IS.
Ian Barwick
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/psql/tab-complete.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 82c926de6f..7212015cf0 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -2130,12 +2130,13 @@ psql_completion(const char *text, int start, int end)
{
COMPLETE_WITH_QUERY(Query_for_list_of_event_triggers);
}
- else if ((pg_strcasecmp(prev4_wd, "COMMENT") == 0 &&
- pg_strcasecmp(prev3_wd, "ON") == 0) ||
- (pg_strcasecmp(prev5_wd, "COMMENT") == 0 &&
- pg_strcasecmp(prev4_wd, "ON") == 0) ||
- (pg_strcasecmp(prev6_wd, "COMMENT") == 0 &&
- pg_strcasecmp(prev5_wd, "ON") == 0))
+ else if (((pg_strcasecmp(prev4_wd, "COMMENT") == 0 &&
+ pg_strcasecmp(prev3_wd, "ON") == 0) ||
+ (pg_strcasecmp(prev5_wd, "COMMENT") == 0 &&
+ pg_strcasecmp(prev4_wd, "ON") == 0) ||
+ (pg_strcasecmp(prev6_wd, "COMMENT") == 0 &&
+ pg_strcasecmp(prev5_wd, "ON") == 0)) &&
+ pg_strcasecmp(prev_wd, "IS") != 0)
COMPLETE_WITH_CONST("IS");
/* COPY */