Call timestamp_in with proper arguments, per gripe from Mark Halliwell.

This commit is contained in:
Tom Lane 2003-01-09 07:10:07 +00:00
parent 8e20b91e78
commit 2e98da5246

View File

@ -64,8 +64,10 @@ moddatetime(PG_FUNCTION_ARGS)
tupdesc = rel->rd_att;
/* Get the current datetime. */
newdt = DirectFunctionCall1(timestamp_in,
CStringGetDatum("now"));
newdt = DirectFunctionCall3(timestamp_in,
CStringGetDatum("now"),
ObjectIdGetDatum(InvalidOid),
Int32GetDatum(-1));
/*
* This gets the position in the turple of the field we want. args[0]