]> granicus.if.org Git - postgresql/commitdiff
Allow TIMESTAMP as a column name or general identifier.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 15:57:25 +0000 (15:57 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 14 Oct 1998 15:57:25 +0000 (15:57 +0000)
 timestamp had become a token a while ago, but had been omitted from the
 keywords.c until recently. This uncovered the omission in the ColId decl.

src/backend/parser/gram.c
src/backend/parser/gram.y

index ff17bfc0386b4a3268f2e3800b80d79a920ff8c9..e62d58b88cbd369d1fc179728b1845c95a899a09 100644 (file)
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.45 1998/10/13 17:26:41 scrappy Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.46 1998/10/14 15:57:25 thomas Exp $
  *
  * HISTORY
  *       AUTHOR                        DATE                    MAJOR EVENT
index 35f55574ed21acbde8529231d3eb63dbeced0b73..d2e34484dac9d2602dca1d72fd7596d477f07115 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.36 1998/10/09 07:06:17 thomas Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.37 1998/10/14 15:56:43 thomas Exp $
  *
  * HISTORY
  *       AUTHOR                        DATE                    MAJOR EVENT
@@ -4698,6 +4698,7 @@ ColId:  IDENT                                                     { $$ = $1; }
                | STDIN                                                 { $$ = "stdin"; }
                | STDOUT                                                { $$ = "stdout"; }
                | TIME                                                  { $$ = "time"; }
+               | TIMESTAMP                                             { $$ = "timestamp"; }
                | TIMEZONE_HOUR                                 { $$ = "timezone_hour"; }
                | TIMEZONE_MINUTE                               { $$ = "timezone_minute"; }
                | TRIGGER                                               { $$ = "trigger"; }