mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
More tab-completion for DROP PROPERTY GRAPH
This adds completion for CASCADE and RESTRICT, similar to what completion of other DROP commands provides. Author: Peter Smith <peter.b.smith@fujitsu.com> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAHut+PuHsLupVWZ9SUeKm=jKR34wYP6qAZPoOHFhU3uDbx34wQ@mail.gmail.com
This commit is contained in:
@@ -4482,6 +4482,8 @@ match_previous_words(int pattern_id,
|
||||
COMPLETE_WITH("GRAPH");
|
||||
else if (Matches("DROP", "PROPERTY", "GRAPH"))
|
||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_propgraphs);
|
||||
else if (Matches("DROP", "PROPERTY", "GRAPH", MatchAny))
|
||||
COMPLETE_WITH("CASCADE", "RESTRICT");
|
||||
|
||||
/* DROP RULE */
|
||||
else if (Matches("DROP", "RULE", MatchAny))
|
||||
|
||||
Reference in New Issue
Block a user