提交 2e98da52 编写于 作者: T Tom Lane

Call timestamp_in with proper arguments, per gripe from Mark Halliwell.

上级 8e20b91e
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册