projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4152d
)
Fix for TAB completion using GRANT DELETE in psql.
author
Bruce Momjian
<
[email protected]
>
Sat, 15 Jun 2002 19:43:47 +0000
(19:43 +0000)
committer
Bruce Momjian
<
[email protected]
>
Sat, 15 Jun 2002 19:43:47 +0000
(19:43 +0000)
Oliver Elphick
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 4ee8f3e01644ca02e2cebf6244e29ba7d8d91823..08e0e1b8bf5a6bea4fcb866e33e79149363278ac 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-498,10
+498,11
@@
psql_completion(char *text, int start, int end)
/*
* Complete DELETE with FROM (only if the word before that is not "ON"
- * (cf. rules) or "BEFORE" or "AFTER" (cf. triggers) )
+ * (cf. rules) or "BEFORE" or "AFTER" (cf. triggers)
or GRANT
)
*/
else if (strcasecmp(prev_wd, "DELETE") == 0 &&
!(strcasecmp(prev2_wd, "ON") == 0 ||
+ strcasecmp(prev2_wd, "GRANT") == 0 ||
strcasecmp(prev2_wd, "BEFORE") == 0 ||
strcasecmp(prev2_wd, "AFTER") == 0))
COMPLETE_WITH_CONST("FROM");