Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb5a703

Browse files
committed
psql: Make EXECUTE PROCEDURE tab completion a bit narrower.
If the user has typed GRANT EXECUTE, the correct completion is "ON",not "PROCEDURE".Daniel Verite
1 parentd3eaab3 commitdb5a703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,6 +2622,7 @@ psql_completion(const char *text, int start, int end)
26222622
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views,NULL);
26232623
/* complete CREATE TRIGGER ... EXECUTE with PROCEDURE */
26242624
elseif (pg_strcasecmp(prev_wd,"EXECUTE")==0&&
2625+
!(pg_strcasecmp(prev2_wd,"GRANT")==0&&prev3_wd[0]=='\0')&&
26252626
prev2_wd[0]!='\0')
26262627
COMPLETE_WITH_CONST("PROCEDURE");
26272628

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp