Skip to content

Commit 05ba837

Browse files
committed
Fix tab completion for ALTER LANGUAGE in psql
OWNER_TO was used for the completion, which is not a supported grammar, but OWNER TO is. This error has been introduced by d37b816, so backpatch down to 9.6. Author: Alexander Lakhin Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com Backpatch-through: 9.6
1 parent 8548ddc commit 05ba837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ psql_completion(const char *text, int start, int end)
16861686

16871687
/* ALTER LANGUAGE <name> */
16881688
else if (Matches("ALTER", "LANGUAGE", MatchAny))
1689-
COMPLETE_WITH("OWNER_TO", "RENAME TO");
1689+
COMPLETE_WITH("OWNER TO", "RENAME TO");
16901690

16911691
/* ALTER LARGE OBJECT <oid> */
16921692
else if (Matches("ALTER", "LARGE", "OBJECT", MatchAny))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy