We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e20b91 commit 2e98da5Copy full SHA for 2e98da5
contrib/spi/moddatetime.c
@@ -64,8 +64,10 @@ moddatetime(PG_FUNCTION_ARGS)
64
tupdesc = rel->rd_att;
65
66
/* Get the current datetime. */
67
- newdt = DirectFunctionCall1(timestamp_in,
68
- CStringGetDatum("now"));
+ newdt = DirectFunctionCall3(timestamp_in,
+ CStringGetDatum("now"),
69
+ ObjectIdGetDatum(InvalidOid),
70
+ Int32GetDatum(-1));
71
72
/*
73
* This gets the position in the turple of the field we want. args[0]
0 commit comments