|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.176 2008/11/11 02:42:32 tgl Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.177 2008/11/20 14:04:46 petere Exp $ |
7 | 7 | */
|
8 | 8 |
|
9 | 9 | /*----------------------------------------------------------------------
|
@@ -615,7 +615,7 @@ psql_completion(char *text, int start, int end)
|
615 | 615 | "DELETE FROM","DISCARD","DROP","END","EXECUTE","EXPLAIN","FETCH",
|
616 | 616 | "GRANT","INSERT","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE",
|
617 | 617 | "REASSIGN","REINDEX","RELEASE","RESET","REVOKE","ROLLBACK",
|
618 |
| -"SAVEPOINT","SELECT","SET","SHOW","START","TRUNCATE","UNLISTEN", |
| 618 | +"SAVEPOINT","SELECT","SET","SHOW","START","TABLE","TRUNCATE","UNLISTEN", |
619 | 619 | "UPDATE","VACUUM","VALUES","WITH",NULL
|
620 | 620 | };
|
621 | 621 |
|
@@ -1694,24 +1694,24 @@ psql_completion(char *text, int start, int end)
|
1694 | 1694 | COMPLETE_WITH_ATTR(prev_wd,"");
|
1695 | 1695 |
|
1696 | 1696 | /*
|
1697 |
| - * Complete INSERT INTO <table> with "VALUES" or "SELECT" or "DEFAULT |
1698 |
| - * VALUES" |
| 1697 | + * Complete INSERT INTO <table> with "VALUES" or "SELECT" or |
| 1698 | + *"TABLE" or "DEFAULTVALUES" |
1699 | 1699 | */
|
1700 | 1700 | elseif (pg_strcasecmp(prev3_wd,"INSERT")==0&&
|
1701 | 1701 | pg_strcasecmp(prev2_wd,"INTO")==0)
|
1702 | 1702 | {
|
1703 | 1703 | staticconstchar*constlist_INSERT[]=
|
1704 |
| -{"DEFAULT VALUES","SELECT","VALUES",NULL}; |
| 1704 | +{"DEFAULT VALUES","SELECT","TABLE","VALUES",NULL}; |
1705 | 1705 |
|
1706 | 1706 | COMPLETE_WITH_LIST(list_INSERT);
|
1707 | 1707 | }
|
1708 |
| -/* Complete INSERT INTO <table> (attribs) with "VALUES" or "SELECT" */ |
| 1708 | +/* Complete INSERT INTO <table> (attribs) with "VALUES" or "SELECT"or "TABLE"*/ |
1709 | 1709 | elseif (pg_strcasecmp(prev4_wd,"INSERT")==0&&
|
1710 | 1710 | pg_strcasecmp(prev3_wd,"INTO")==0&&
|
1711 | 1711 | prev_wd[strlen(prev_wd)-1]==')')
|
1712 | 1712 | {
|
1713 | 1713 | staticconstchar*constlist_INSERT[]=
|
1714 |
| -{"SELECT","VALUES",NULL}; |
| 1714 | +{"SELECT","TABLE","VALUES",NULL}; |
1715 | 1715 |
|
1716 | 1716 | COMPLETE_WITH_LIST(list_INSERT);
|
1717 | 1717 | }
|
|