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

Commitd16eb83

Browse files
committed
psql: Add completion support for AT [ LOCAL | TIME ZONE ]
AT TIME ZONE is completed with a list of supported timezones, somethingnot needed by AT LOCAL.Author: Dagfinn Ilmari MannsåkerReviewed-by: Jim JonesDiscussion:https://postgr.es/m/87jzyzsvgv.fsf@wibble.ilmari.org
1 parent97957fd commitd16eb83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,6 +4682,12 @@ psql_completion(const char *text, int start, int end)
46824682
elseif (TailMatches("JOIN"))
46834683
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_selectables);
46844684

4685+
/* ... AT [ LOCAL | TIME ZONE ] ... */
4686+
elseif (TailMatches("AT"))
4687+
COMPLETE_WITH("LOCAL","TIME ZONE");
4688+
elseif (TailMatches("AT","TIME","ZONE"))
4689+
COMPLETE_WITH_TIMEZONE_NAME();
4690+
46854691
/* Backslash commands */
46864692
/* TODO: \dc \dd \dl */
46874693
elseif (TailMatchesCS("\\?"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp