8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.54 2001/10/04 14:49:57 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.55 2001/10/05 06:38:59 thomas Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -1400,8 +1400,8 @@ interval_accum(PG_FUNCTION_ARGS)
1400
1400
memcpy (& N , DatumGetIntervalP (transdatums [1 ]), sizeof (Interval ));
1401
1401
1402
1402
newsum = DatumGetIntervalP (DirectFunctionCall2 (interval_pl ,
1403
- IntervalPGetDatum (& sumX ),
1404
- IntervalPGetDatum (newval )));
1403
+ IntervalPGetDatum (& sumX ),
1404
+ IntervalPGetDatum (newval )));
1405
1405
N .time += 1 ;
1406
1406
1407
1407
transdatums [0 ] = IntervalPGetDatum (newsum );
@@ -1856,7 +1856,7 @@ timestamp_trunc(PG_FUNCTION_ARGS)
1856
1856
if (VARSIZE (units ) - VARHDRSZ > MAXDATELEN )
1857
1857
elog (ERROR , "Interval units '%s' not recognized" ,
1858
1858
DatumGetCString (DirectFunctionCall1 (textout ,
1859
- PointerGetDatum (units ))));
1859
+ PointerGetDatum (units ))));
1860
1860
up = VARDATA (units );
1861
1861
lp = lowunits ;
1862
1862
for (i = 0 ; i < (VARSIZE (units ) - VARHDRSZ ); i ++ )
@@ -1943,7 +1943,7 @@ timestamptz_trunc(PG_FUNCTION_ARGS)
1943
1943
if (VARSIZE (units ) - VARHDRSZ > MAXDATELEN )
1944
1944
elog (ERROR , "Interval units '%s' not recognized" ,
1945
1945
DatumGetCString (DirectFunctionCall1 (textout ,
1946
- PointerGetDatum (units ))));
1946
+ PointerGetDatum (units ))));
1947
1947
up = VARDATA (units );
1948
1948
lp = lowunits ;
1949
1949
for (i = 0 ; i < (VARSIZE (units ) - VARHDRSZ ); i ++ )
@@ -2032,7 +2032,7 @@ interval_trunc(PG_FUNCTION_ARGS)
2032
2032
if (VARSIZE (units ) - VARHDRSZ > MAXDATELEN )
2033
2033
elog (ERROR , "Interval units '%s' not recognized" ,
2034
2034
DatumGetCString (DirectFunctionCall1 (textout ,
2035
- PointerGetDatum (units ))));
2035
+ PointerGetDatum (units ))));
2036
2036
up = VARDATA (units );
2037
2037
lp = lowunits ;
2038
2038
for (i = 0 ; i < (VARSIZE (units ) - VARHDRSZ ); i ++ )
@@ -2569,7 +2569,7 @@ interval_part(PG_FUNCTION_ARGS)
2569
2569
default :
2570
2570
elog (ERROR , "Interval units '%s' not supported" ,
2571
2571
DatumGetCString (DirectFunctionCall1 (textout ,
2572
- PointerGetDatum (units ))));
2572
+ PointerGetDatum (units ))));
2573
2573
result = 0 ;
2574
2574
}
2575
2575
@@ -2594,7 +2594,7 @@ interval_part(PG_FUNCTION_ARGS)
2594
2594
{
2595
2595
elog (ERROR , "Interval units '%s' not recognized" ,
2596
2596
DatumGetCString (DirectFunctionCall1 (textout ,
2597
- PointerGetDatum (units ))));
2597
+ PointerGetDatum (units ))));
2598
2598
result = 0 ;
2599
2599
}
2600
2600
0 commit comments