Add more reserved words, mostly for SQL92 compliance.
Include reserved words for string handling, outer joins, and unions.
This commit is contained in:
parent
559a28747a
commit
05eb632864
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.12 1997/08/22 14:33:21 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.13 1997/09/01 05:53:31 thomas Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -51,6 +51,7 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "begin", BEGIN_TRANS },
|
||||
{ "between", BETWEEN },
|
||||
{ "binary", BINARY },
|
||||
{ "both", BOTH },
|
||||
{ "by", BY },
|
||||
{ "cast", CAST },
|
||||
{ "change", CHANGE },
|
||||
|
@ -62,9 +63,11 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "constraint", CONSTRAINT },
|
||||
{ "copy", COPY },
|
||||
{ "create", CREATE },
|
||||
{ "cross", CROSS },
|
||||
{ "current", CURRENT },
|
||||
{ "cursor", CURSOR },
|
||||
{ "database", DATABASE },
|
||||
{ "day", DAYINTERVAL },
|
||||
{ "declare", DECLARE },
|
||||
{ "default", DEFAULT },
|
||||
{ "delete", DELETE },
|
||||
|
@ -75,32 +78,45 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "drop", DROP },
|
||||
{ "end", END_TRANS },
|
||||
{ "execute", EXECUTE },
|
||||
{ "exists", EXISTS },
|
||||
{ "explain", EXPLAIN },
|
||||
{ "extend", EXTEND },
|
||||
{ "extract", EXTRACT },
|
||||
{ "fetch", FETCH },
|
||||
{ "for", FOR },
|
||||
{ "forward", FORWARD },
|
||||
{ "from", FROM },
|
||||
{ "full", FULL },
|
||||
{ "function", FUNCTION },
|
||||
{ "grant", GRANT },
|
||||
{ "group", GROUP },
|
||||
{ "having", HAVING },
|
||||
{ "heavy", HEAVY },
|
||||
{ "hour", HOURINTERVAL },
|
||||
{ "in", IN },
|
||||
{ "index", INDEX },
|
||||
{ "inherits", INHERITS },
|
||||
{ "inner", INNERJOIN },
|
||||
{ "insert", INSERT },
|
||||
{ "instead", INSTEAD },
|
||||
{ "interval", INTERVAL },
|
||||
{ "into", INTO },
|
||||
{ "is", IS },
|
||||
{ "isnull", ISNULL },
|
||||
{ "join", JOIN },
|
||||
{ "language", LANGUAGE },
|
||||
{ "leading", LEADING },
|
||||
{ "left", LEFT },
|
||||
{ "light", LIGHT },
|
||||
{ "like", LIKE },
|
||||
{ "listen", LISTEN },
|
||||
{ "load", LOAD },
|
||||
{ "local", LOCAL },
|
||||
{ "merge", MERGE },
|
||||
{ "minute", MINUTEINTERVAL },
|
||||
{ "month", MONTHINTERVAL },
|
||||
{ "move", MOVE },
|
||||
{ "natural", NATURAL },
|
||||
{ "new", NEW },
|
||||
{ "none", NONE },
|
||||
{ "not", NOT },
|
||||
|
@ -114,6 +130,8 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "option", OPTION },
|
||||
{ "or", OR },
|
||||
{ "order", ORDER },
|
||||
{ "outer", OUTERJOIN },
|
||||
{ "position", POSITION },
|
||||
{ "privileges", PRIVILEGES },
|
||||
{ "public", PUBLIC },
|
||||
{ "purge", PURGE },
|
||||
|
@ -124,8 +142,10 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "retrieve", RETRIEVE },
|
||||
{ "returns", RETURNS },
|
||||
{ "revoke", REVOKE },
|
||||
{ "right", RIGHT },
|
||||
{ "rollback", ROLLBACK },
|
||||
{ "rule", RULE },
|
||||
{ "second", SECONDINTERVAL },
|
||||
{ "select", SELECT },
|
||||
{ "sequence", SEQUENCE },
|
||||
{ "set", SET },
|
||||
|
@ -134,10 +154,15 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "stdin", STDIN },
|
||||
{ "stdout", STDOUT },
|
||||
{ "store", STORE },
|
||||
{ "substring", SUBSTRING },
|
||||
{ "table", TABLE },
|
||||
{ "time", TIME },
|
||||
{ "to", TO },
|
||||
{ "transaction", TRANSACTION },
|
||||
{ "trailing", TRAILING },
|
||||
{ "trim", TRIM },
|
||||
{ "type", P_TYPE },
|
||||
{ "union", UNION },
|
||||
{ "unique", UNIQUE },
|
||||
{ "update", UPDATE },
|
||||
{ "using", USING },
|
||||
|
@ -149,6 +174,8 @@ static ScanKeyword ScanKeywords[] = {
|
|||
{ "where", WHERE },
|
||||
{ "with", WITH },
|
||||
{ "work", WORK },
|
||||
{ "year", YEARINTERVAL },
|
||||
{ "zone", ZONE },
|
||||
};
|
||||
|
||||
ScanKeyword *
|
||||
|
|
Loading…
Reference in New Issue