mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Remove TypeName struct's timezone flag, which has been write-only storage
for a very long time --- in current usage it's entirely redundant with the name field.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.609 2008/03/20 21:42:48 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.610 2008/03/21 22:41:48 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@@ -7198,10 +7198,6 @@ ConstDatetime:
|
||||
$$ = SystemTypeName("timestamptz");
|
||||
else
|
||||
$$ = SystemTypeName("timestamp");
|
||||
/* XXX the timezone field seems to be unused
|
||||
* - thomas 2001-09-06
|
||||
*/
|
||||
$$->timezone = $5;
|
||||
$$->typmods = list_make1(makeIntConst($3));
|
||||
$$->location = @1;
|
||||
}
|
||||
@@ -7211,10 +7207,6 @@ ConstDatetime:
|
||||
$$ = SystemTypeName("timestamptz");
|
||||
else
|
||||
$$ = SystemTypeName("timestamp");
|
||||
/* XXX the timezone field seems to be unused
|
||||
* - thomas 2001-09-06
|
||||
*/
|
||||
$$->timezone = $2;
|
||||
$$->location = @1;
|
||||
}
|
||||
| TIME '(' Iconst ')' opt_timezone
|
||||
|
||||
Reference in New Issue
Block a user