Skip to content
Snippets Groups Projects
Commit cd8b3549 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Honor the typmod field for time zone intervals.

parent d6fbb105
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.56 2001/11/21 05:55:18 thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.57 2001/12/09 04:37:50 thomas Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -397,7 +397,7 @@ parse_timezone(List *args)
interval = DatumGetIntervalP(DirectFunctionCall3(interval_in,
CStringGetDatum(p->val.val.str),
ObjectIdGetDatum(InvalidOid),
Int32GetDatum(-1)));
Int32GetDatum(type->typmod)));
if (interval->month != 0)
elog(ERROR, "SET TIME ZONE illegal INTERVAL; month not allowed");
CTimeZone = interval->time;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment