From: Tom Lane Date: Thu, 9 Jan 2003 07:10:07 +0000 (+0000) Subject: Call timestamp_in with proper arguments, per gripe from Mark Halliwell. X-Git-Tag: REL7_4_BETA1~1248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e98da52467de01bc5373926022ee26be77e63b3;p=postgresql Call timestamp_in with proper arguments, per gripe from Mark Halliwell. --- diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c index bd45dc72b3..4bc06d51be 100644 --- a/contrib/spi/moddatetime.c +++ b/contrib/spi/moddatetime.c @@ -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]