Commit 2e98da52 authored by Tom Lane's avatar Tom Lane

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

parent 8e20b91e
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment