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

Commit81966c5

Browse files
committed
psql: Improve tab-completion for PREPARE.
This commit enhances tab-completion for PREPARE xx AS to also suggestMERGE INTO, VALUES, WITH, and TABLE.Author: Haruna Miwa <miwa@sraoss.co.jp>Reviewed-by: Fujii Masao <masao.fujii@gmail.com>Discussion:https://postgr.es/m/TY7P286MB5466B859BD6C5BE64E961878F1CEA@TY7P286MB5466.JPNP286.PROD.OUTLOOK.COM
1 parent7d9043a commit81966c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4951,7 +4951,8 @@ match_previous_words(int pattern_id,
49514951

49524952
/* PREPARE xx AS */
49534953
elseif (Matches("PREPARE",MatchAny,"AS"))
4954-
COMPLETE_WITH("SELECT","UPDATE","INSERT INTO","DELETE FROM");
4954+
COMPLETE_WITH("SELECT","UPDATE","INSERT INTO","DELETE FROM",
4955+
"MERGE INTO","VALUES","WITH","TABLE");
49554956

49564957
/*
49574958
* PREPARE TRANSACTION is missing on purpose. It's intended for transaction

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp