diff options
author | Tom Lane | 2000-06-09 01:11:16 +0000 |
---|---|---|
committer | Tom Lane | 2000-06-09 01:11:16 +0000 |
commit | ae526b407039dd743eb318a9f05eba1ee7594738 (patch) | |
tree | 2858f9b0426a2054b81350e36562ea9d2ba0ab39 /contrib/spi/moddatetime.c | |
parent | 20ad43b576d9360b0e9ce9bd868c989443cf9d36 (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.c | 3 |
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] |