Skip to content

Commit 2e98da5

Browse files
committed
Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
1 parent 8e20b91 commit 2e98da5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/spi/moddatetime.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ moddatetime(PG_FUNCTION_ARGS)
6464
tupdesc = rel->rd_att;
6565

6666
/* Get the current datetime. */
67-
newdt = DirectFunctionCall1(timestamp_in,
68-
CStringGetDatum("now"));
67+
newdt = DirectFunctionCall3(timestamp_in,
68+
CStringGetDatum("now"),
69+
ObjectIdGetDatum(InvalidOid),
70+
Int32GetDatum(-1));
6971

7072
/*
7173
* This gets the position in the turple of the field we want. args[0]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy