Add SQL/92 types decimal and numeric.
authorThomas G. Lockhart
Wed, 24 Sep 1997 17:49:56 +0000 (17:49 +0000)
committerThomas G. Lockhart
Wed, 24 Sep 1997 17:49:56 +0000 (17:49 +0000)
Add SQL/92 "constants" current_date, current_time, and current_timestamp.

src/backend/parser/keywords.c

index d5a90bbd48f4dcd6c3c41004319ee9c93aa95f19..f515e089bd052dc64c2cde3a8c42f1b9167c2a32 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.18 1997/09/20 16:11:44 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.19 1997/09/24 17:49:56 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -66,9 +66,13 @@ static ScanKeyword ScanKeywords[] = {
    {"create", CREATE},
    {"cross", CROSS},
    {"current", CURRENT},
+   {"current_date", CURRENT_DATE},
+   {"current_time", CURRENT_TIME},
+   {"current_timestamp", CURRENT_TIMESTAMP},
    {"cursor", CURSOR},
    {"database", DATABASE},
    {"day", DAYINTERVAL},
+   {"decimal", DECIMAL},
    {"declare", DECLARE},
    {"default", DEFAULT},
    {"delete", DELETE},
@@ -127,6 +131,7 @@ static ScanKeyword ScanKeywords[] = {
    {"notify", NOTIFY},
    {"notnull", NOTNULL},
    {"null", PNULL},
+   {"numeric", NUMERIC},
    {"oids", OIDS},
    {"on", ON},
    {"operator", OPERATOR},