From 531e60aec02fa14d02185e42363b2277427e2119 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 15 Mar 2012 21:13:35 +0200 Subject: Remove unused tzn arguments for timestamp2tm() --- src/backend/utils/adt/date.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/backend/utils/adt/date.c') diff --git a/src/backend/utils/adt/date.c b/src/backend/utils/adt/date.c index 2da4e04a28b..e2236d25951 100644 --- a/src/backend/utils/adt/date.c +++ b/src/backend/utils/adt/date.c @@ -969,7 +969,6 @@ timestamptz_date(PG_FUNCTION_ARGS) *tm = &tt; fsec_t fsec; int tz; - char *tzn; if (TIMESTAMP_IS_NOBEGIN(timestamp)) DATE_NOBEGIN(result); @@ -977,7 +976,7 @@ timestamptz_date(PG_FUNCTION_ARGS) DATE_NOEND(result); else { - if (timestamp2tm(timestamp, &tz, tm, &fsec, &tzn, NULL) != 0) + if (timestamp2tm(timestamp, &tz, tm, &fsec, NULL, NULL) != 0) ereport(ERROR, (errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE), errmsg("timestamp out of range"))); @@ -1576,12 +1575,11 @@ timestamptz_time(PG_FUNCTION_ARGS) *tm = &tt; int tz; fsec_t fsec; - char *tzn; if (TIMESTAMP_NOT_FINITE(timestamp)) PG_RETURN_NULL(); - if (timestamp2tm(timestamp, &tz, tm, &fsec, &tzn, NULL) != 0) + if (timestamp2tm(timestamp, &tz, tm, &fsec, NULL, NULL) != 0) ereport(ERROR, (errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE), errmsg("timestamp out of range"))); @@ -2450,12 +2448,11 @@ timestamptz_timetz(PG_FUNCTION_ARGS) *tm = &tt; int tz; fsec_t fsec; - char *tzn; if (TIMESTAMP_NOT_FINITE(timestamp)) PG_RETURN_NULL(); - if (timestamp2tm(timestamp, &tz, tm, &fsec, &tzn, NULL) != 0) + if (timestamp2tm(timestamp, &tz, tm, &fsec, NULL, NULL) != 0) ereport(ERROR, (errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE), errmsg("timestamp out of range"))); -- cgit v1.2.3