Commit 2684f15e authored by Tom Lane's avatar Tom Lane

Add missing TIMESTAMPTZ case.

parent 873dd243
......@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.97 2001/09/14 17:46:40 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.98 2001/10/03 18:25:59 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -1744,6 +1744,7 @@ convert_to_scalar(Datum value, Oid valuetypid, double *scaledvalue,
* Built-in time types
*/
case TIMESTAMPOID:
case TIMESTAMPTZOID:
case ABSTIMEOID:
case DATEOID:
case INTERVALOID:
......@@ -2121,6 +2122,8 @@ convert_timevalue_to_scalar(Datum value, Oid typid)
{
case TIMESTAMPOID:
return DatumGetTimestamp(value);
case TIMESTAMPTZOID:
return DatumGetTimestampTz(value);
case ABSTIMEOID:
return DatumGetTimestamp(DirectFunctionCall1(abstime_timestamp,
value));
......
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