mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
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;
|
tupdesc = rel->rd_att;
|
||||||
|
|
||||||
/* Get the current datetime. */
|
/* Get the current datetime. */
|
||||||
newdt = DirectFunctionCall1(timestamp_in,
|
newdt = DirectFunctionCall3(timestamp_in,
|
||||||
CStringGetDatum("now"));
|
CStringGetDatum("now"),
|
||||||
|
ObjectIdGetDatum(InvalidOid),
|
||||||
|
Int32GetDatum(-1));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This gets the position in the turple of the field we want. args[0]
|
* This gets the position in the turple of the field we want. args[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user