Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2684f15

Browse files
committed
Add missing TIMESTAMPTZ case.
1 parent 873dd24 commit 2684f15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/utils/adt/selfuncs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.97 2001/09/14 17:46:40 momjian Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.98 2001/10/03 18:25:59 tgl Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -1744,6 +1744,7 @@ convert_to_scalar(Datum value, Oid valuetypid, double *scaledvalue,
17441744
* Built-in time types
17451745
*/
17461746
case TIMESTAMPOID:
1747+
case TIMESTAMPTZOID:
17471748
case ABSTIMEOID:
17481749
case DATEOID:
17491750
case INTERVALOID:
@@ -2121,6 +2122,8 @@ convert_timevalue_to_scalar(Datum value, Oid typid)
21212122
{
21222123
case TIMESTAMPOID:
21232124
return DatumGetTimestamp(value);
2125+
case TIMESTAMPTZOID:
2126+
return DatumGetTimestampTz(value);
21242127
case ABSTIMEOID:
21252128
return DatumGetTimestamp(DirectFunctionCall1(abstime_timestamp,
21262129
value));

0 commit comments

Comments
 (0)