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

Commitdbbd13b

Browse files
committed
Fix for TAB completion using GRANT DELETE in psql.
Oliver Elphick
1 parent6b9e742 commitdbbd13b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.48 2002/04/11 20:00:09 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.49 2002/06/15 19:43:47 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -498,10 +498,11 @@ psql_completion(char *text, int start, int end)
498498

499499
/*
500500
* Complete DELETE with FROM (only if the word before that is not "ON"
501-
* (cf. rules) or "BEFORE" or "AFTER" (cf. triggers) )
501+
* (cf. rules) or "BEFORE" or "AFTER" (cf. triggers)or GRANT)
502502
*/
503503
elseif (strcasecmp(prev_wd,"DELETE")==0&&
504504
!(strcasecmp(prev2_wd,"ON")==0||
505+
strcasecmp(prev2_wd,"GRANT")==0||
505506
strcasecmp(prev2_wd,"BEFORE")==0||
506507
strcasecmp(prev2_wd,"AFTER")==0))
507508
COMPLETE_WITH_CONST("FROM");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp