Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd8b354

Browse files
author
Thomas G. Lockhart
committed
Honor the typmod field for time zone intervals.
1 parentd6fbb10 commitcd8b354

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/variable.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.56 2001/11/21 05:55:18 thomas Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.57 2001/12/09 04:37:50 thomas Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -395,9 +395,9 @@ parse_timezone(List *args)
395395
Interval*interval;
396396

397397
interval=DatumGetIntervalP(DirectFunctionCall3(interval_in,
398-
CStringGetDatum(p->val.val.str),
399-
ObjectIdGetDatum(InvalidOid),
400-
Int32GetDatum(-1)));
398+
CStringGetDatum(p->val.val.str),
399+
ObjectIdGetDatum(InvalidOid),
400+
Int32GetDatum(type->typmod)));
401401
if (interval->month!=0)
402402
elog(ERROR,"SET TIME ZONE illegal INTERVAL; month not allowed");
403403
CTimeZone=interval->time;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp