summaryrefslogtreecommitdiff
path: root/contrib/spi/moddatetime.c
diff options
context:
space:
mode:
authorTom Lane2000-06-09 01:11:16 +0000
committerTom Lane2000-06-09 01:11:16 +0000
commitae526b407039dd743eb318a9f05eba1ee7594738 (patch)
tree2858f9b0426a2054b81350e36562ea9d2ba0ab39 /contrib/spi/moddatetime.c
parent20ad43b576d9360b0e9ce9bd868c989443cf9d36 (diff)
Another round of updates for new fmgr, mostly in the datetime code.
Diffstat (limited to 'contrib/spi/moddatetime.c')
-rw-r--r--contrib/spi/moddatetime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c
index 6405f3fb9b8..0229eb8f155 100644
--- a/contrib/spi/moddatetime.c
+++ b/contrib/spi/moddatetime.c
@@ -62,7 +62,8 @@ moddatetime(PG_FUNCTION_ARGS)
tupdesc = rel->rd_att;
/* Get the current datetime. */
- newdt = (Datum) timestamp_in("now");
+ newdt = DirectFunctionCall1(timestamp_in,
+ CStringGetDatum("now"));
/*
* This gets the position in the turple of the field we want. args[0]