summaryrefslogtreecommitdiff
path: root/contrib/spi/moddatetime.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-01-09 07:10:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-01-09 07:10:07 +0000
commit2e98da52467de01bc5373926022ee26be77e63b3 (patch)
tree7252a241a7d1bd5542704225be52fef24191aa30 /contrib/spi/moddatetime.c
parent8e20b91e786e89aa25bea1eba21e282896df4d6e (diff)
downloadpostgresql-2e98da52467de01bc5373926022ee26be77e63b3.tar.gz
Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
Diffstat (limited to 'contrib/spi/moddatetime.c')
-rw-r--r--contrib/spi/moddatetime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c
index bd45dc72b3..4bc06d51be 100644
--- a/contrib/spi/moddatetime.c
+++ b/contrib/spi/moddatetime.c
@@ -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]