]> granicus.if.org Git - postgresql/commitdiff
Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Jan 2003 07:10:07 +0000 (07:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Jan 2003 07:10:07 +0000 (07:10 +0000)
contrib/spi/moddatetime.c

index bd45dc72b3d49dae89dd0e8efe9ba24c2cc87c36..4bc06d51be9fcfd1c6064fb9c994dcaffc4b581f 100644 (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]