Commit c826d1ce authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Have to_date() call timestamptz_date() per Karel's email instructions.

Fixes time zone problems introduced by Thomas' implementation of
 TIMESTAMP WITHOUT TIME ZONE which caused the behavior of the previously
 appropriate routine, timestamp_date(), to change for the worse in this
 context.
parent 5a60ba50
/* ----------------------------------------------------------------------- /* -----------------------------------------------------------------------
* formatting.c * formatting.c
* *
* $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.48 2002/01/02 22:09:23 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.49 2002/01/04 15:49:42 thomas Exp $
* *
* *
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
...@@ -3112,7 +3112,7 @@ to_date(PG_FUNCTION_ARGS) ...@@ -3112,7 +3112,7 @@ to_date(PG_FUNCTION_ARGS)
* Quick hack: since our inputs are just like to_timestamp, hand over * Quick hack: since our inputs are just like to_timestamp, hand over
* the whole input info struct... * the whole input info struct...
*/ */
return DirectFunctionCall1(timestamp_date, to_timestamp(fcinfo)); return DirectFunctionCall1(timestamptz_date, to_timestamp(fcinfo));
} }
/********************************************************************** /**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment