*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.59 2001/10/03 05:29:24 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.60 2001/10/04 14:49:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
*dp++ = *sp++;
*dp = '\0';
- return DirectFunctionCall1(time_in,
- CStringGetDatum(dstr));
+ return DirectFunctionCall3(time_in,
+ CStringGetDatum(dstr),
+ ObjectIdGetDatum(InvalidOid),
+ Int32GetDatum(-1));
}
*dp++ = *sp++;
*dp = '\0';
- return DirectFunctionCall1(timetz_in,
- CStringGetDatum(dstr));
+ return DirectFunctionCall3(timetz_in,
+ CStringGetDatum(dstr),
+ ObjectIdGetDatum(InvalidOid),
+ Int32GetDatum(-1));
}
/* timetz_zone()
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.53 2001/10/03 15:50:48 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.54 2001/10/04 14:49:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
static int32 TimestampTypmod = 0;
if (typmod != TimestampTypmod)
- TimestampScale = pow(10, typmod);
+ {
+ TimestampScale = pow(10.0, typmod);
+ TimestampTypmod = typmod;
+ }
*time = (rint(((double) *time)*TimestampScale)/TimestampScale);
}
*dp++ = *sp++;
*dp = '\0';
- return DirectFunctionCall1(timestamp_in,
- CStringGetDatum(dstr));
+ return DirectFunctionCall3(timestamp_in,
+ CStringGetDatum(dstr),
+ ObjectIdGetDatum(InvalidOid),
+ Int32GetDatum(-1));
}
*dp++ = *sp++;
*dp = '\0';
- return DirectFunctionCall1(timestamptz_in,
- CStringGetDatum(dstr));
+ return DirectFunctionCall3(timestamptz_in,
+ CStringGetDatum(dstr),
+ ObjectIdGetDatum(InvalidOid),
+ Int32GetDatum(-1));
}