Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e98da5

Browse files
committed
Call timestamp_in with proper arguments, per gripe from Mark Halliwell.
1 parent8e20b91 commit2e98da5

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)

[8]ページ先頭

©2009-2025 Movatter.jp