Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
This commit is contained in:
parent
8e20b91e78
commit
2e98da5246
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user