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

Commitc1dcaa8

Browse files
committed
Fix tab completion of ANALYZE VERBOSE <tab>. It was previously confused
with EXPLAIN ANALYZE VERBOSE.Greg Sabino Mullane, reformatted by myself. Backpatch to 8.1, where thebug was introduced.
1 parent2e427ec commitc1dcaa8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.180 2009/02/24 10:06:34 petere Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.181 2009/03/27 14:58:46 heikki Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -1624,11 +1624,11 @@ psql_completion(char *text, int start, int end)
16241624

16251625
COMPLETE_WITH_LIST(list_EXPLAIN);
16261626
}
1627-
elseif (pg_strcasecmp(prev_wd,"VERBOSE")==0&&
1628-
pg_strcasecmp(prev3_wd,"VACUUM")!=0&&
1629-
pg_strcasecmp(prev4_wd,"VACUUM")!=0&&
1630-
(pg_strcasecmp(prev2_wd,"ANALYZE")==0||
1631-
pg_strcasecmp(prev2_wd,"EXPLAIN")==0))
1627+
elseif ((pg_strcasecmp(prev2_wd,"EXPLAIN")==0&&
1628+
pg_strcasecmp(prev_wd,"VERBOSE")==0)||
1629+
(pg_strcasecmp(prev3_wd,"EXPLAIN")==0&&
1630+
pg_strcasecmp(prev2_wd,"ANALYZE")==0&&
1631+
pg_strcasecmp(prev_wd,"VERBOSE")==0))
16321632
{
16331633
staticconstchar*constlist_EXPLAIN[]=
16341634
{"SELECT","INSERT","DELETE","UPDATE","DECLARE",NULL};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp