aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2002-01-04 15:49:42 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2002-01-04 15:49:42 +0000
commitc826d1cefb6493b5cc718c41b8b459a24eb2ba5f (patch)
treeef37e84bf6eb56d7e20eab21f1d2054a029e2ea0
parent5a60ba50784dcca1ffd5fe27156d23034484992c (diff)
downloadpostgresql-c826d1cefb6493b5cc718c41b8b459a24eb2ba5f.tar.gz
postgresql-c826d1cefb6493b5cc718c41b8b459a24eb2ba5f.zip
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.
-rw-r--r--src/backend/utils/adt/formatting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 5970cde8ca2..d9422587f4f 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------
* 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
@@ -3112,7 +3112,7 @@ to_date(PG_FUNCTION_ARGS)
* Quick hack: since our inputs are just like to_timestamp, hand over
* the whole input info struct...
*/
- return DirectFunctionCall1(timestamp_date, to_timestamp(fcinfo));
+ return DirectFunctionCall1(timestamptz_date, to_timestamp(fcinfo));
}
/**********************************************************************