|
3 | 3 | * |
4 | 4 | * Copyright 2000 by PostgreSQL Global Development Group |
5 | 5 | * |
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 $ |
7 | 7 | */ |
8 | 8 |
|
9 | 9 | /*---------------------------------------------------------------------- |
@@ -498,10 +498,11 @@ psql_completion(char *text, int start, int end) |
498 | 498 |
|
499 | 499 | /* |
500 | 500 | * 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) |
502 | 502 | */ |
503 | 503 | elseif (strcasecmp(prev_wd,"DELETE")==0&& |
504 | 504 | !(strcasecmp(prev2_wd,"ON")==0|| |
| 505 | +strcasecmp(prev2_wd,"GRANT")==0|| |
505 | 506 | strcasecmp(prev2_wd,"BEFORE")==0|| |
506 | 507 | strcasecmp(prev2_wd,"AFTER")==0)) |
507 | 508 | COMPLETE_WITH_CONST("FROM"); |
|