mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Tab complete table names after ALTER TABLE x [NO] INHERIT.
Jeff Janes
This commit is contained in:
parent
d7318d43d8
commit
d20cdd31c0
@ -1261,6 +1261,21 @@ psql_completion(char *text, int start, int end)
|
||||
|
||||
COMPLETE_WITH_LIST(list_ALTERENABLE2);
|
||||
}
|
||||
/* ALTER TABLE xxx INHERIT */
|
||||
else if (pg_strcasecmp(prev4_wd, "ALTER") == 0 &&
|
||||
pg_strcasecmp(prev3_wd, "TABLE") == 0 &&
|
||||
pg_strcasecmp(prev_wd, "INHERIT") == 0)
|
||||
{
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tables, "");
|
||||
}
|
||||
/* ALTER TABLE xxx NO INHERIT */
|
||||
else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
|
||||
pg_strcasecmp(prev4_wd, "TABLE") == 0 &&
|
||||
pg_strcasecmp(prev2_wd, "NO") == 0 &&
|
||||
pg_strcasecmp(prev_wd, "INHERIT") == 0)
|
||||
{
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tables, "");
|
||||
}
|
||||
else if (pg_strcasecmp(prev4_wd, "ALTER") == 0 &&
|
||||
pg_strcasecmp(prev3_wd, "TABLE") == 0 &&
|
||||
pg_strcasecmp(prev_wd, "DISABLE") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user