mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 00:01:20 -04:00
Add missing TIMESTAMPTZ case.
This commit is contained in:
parent
873dd24313
commit
2684f15e46
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* Built-in time types
|
||||||
*/
|
*/
|
||||||
case TIMESTAMPOID:
|
case TIMESTAMPOID:
|
||||||
|
case TIMESTAMPTZOID:
|
||||||
case ABSTIMEOID:
|
case ABSTIMEOID:
|
||||||
case DATEOID:
|
case DATEOID:
|
||||||
case INTERVALOID:
|
case INTERVALOID:
|
||||||
@ -2121,6 +2122,8 @@ convert_timevalue_to_scalar(Datum value, Oid typid)
|
|||||||
{
|
{
|
||||||
case TIMESTAMPOID:
|
case TIMESTAMPOID:
|
||||||
return DatumGetTimestamp(value);
|
return DatumGetTimestamp(value);
|
||||||
|
case TIMESTAMPTZOID:
|
||||||
|
return DatumGetTimestampTz(value);
|
||||||
case ABSTIMEOID:
|
case ABSTIMEOID:
|
||||||
return DatumGetTimestamp(DirectFunctionCall1(abstime_timestamp,
|
return DatumGetTimestamp(DirectFunctionCall1(abstime_timestamp,
|
||||||
value));
|
value));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user