Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2e98da5

Browse files
committed
Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
1 parent 8e20b91 commit 2e98da5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/spi/moddatetime.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ moddatetime(PG_FUNCTION_ARGS)
6464
tupdesc = rel->rd_att;
6565

6666
/* Get the current datetime. */
67-
newdt = DirectFunctionCall1(timestamp_in,
68-
CStringGetDatum("now"));
67+
newdt = DirectFunctionCall3(timestamp_in,
68+
CStringGetDatum("now"),
69+
ObjectIdGetDatum(InvalidOid),
70+
Int32GetDatum(-1));
6971

7072
/*
7173
* This gets the position in the turple of the field we want. args[0]

0 commit comments

Comments
 (0)