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

Commit369398e

Browse files
committed
Fix bogus tab-completion queries.
My (tgl's) thinko in commit02b8048: I forgot that the firstargument of COMPLETE_WITH_QUERY_PLUS is a format string, andhence failed to double a literal %. These two places seem tobe the only ones that are wrong, though.Vignesh CDiscussion:https://postgr.es/m/CALDaNm0hBO+tZqBWhBjTVxyET1GWANq5K9XpQ07atSxnFXbG7w@mail.gmail.com
1 parent6e20f46 commit369398e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ psql_completion(const char *text, int start, int end)
18111811
COMPLETE_WITH("(","ALL TABLES IN SCHEMA","TABLE");
18121812
elseif (Matches("ALTER","PUBLICATION",MatchAny,"ADD|DROP|SET","ALL","TABLES","IN","SCHEMA"))
18131813
COMPLETE_WITH_QUERY_PLUS(Query_for_list_of_schemas
1814-
" AND nspname NOT LIKE E'pg\\\\_%'",
1814+
" AND nspname NOT LIKE E'pg\\\\_%%'",
18151815
"CURRENT_SCHEMA");
18161816
/* ALTER PUBLICATION <name> SET ( */
18171817
elseif (HeadMatches("ALTER","PUBLICATION",MatchAny)&&TailMatches("SET","("))
@@ -2956,7 +2956,7 @@ psql_completion(const char *text, int start, int end)
29562956
*/
29572957
elseif (Matches("CREATE","PUBLICATION",MatchAny,"FOR","ALL","TABLES","IN","SCHEMA"))
29582958
COMPLETE_WITH_QUERY_PLUS(Query_for_list_of_schemas
2959-
" AND nspname NOT LIKE E'pg\\\\_%'",
2959+
" AND nspname NOT LIKE E'pg\\\\_%%'",
29602960
"CURRENT_SCHEMA");
29612961
elseif (Matches("CREATE","PUBLICATION",MatchAny,"FOR","ALL","TABLES","IN","SCHEMA",MatchAny)&& (!ends_with(prev_wd,',')))
29622962
COMPLETE_WITH("WITH (");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp