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

Commit8826fe8

Browse files
committed
Missed adding extra argument to array_recv in a couple of places
(harmless, actually, but let's be tidy).
1 parentd78397d commit8826fe8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

‎src/backend/utils/adt/int.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.66 2005/03/29 00:17:08 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.67 2005/07/10 21:36:21 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -215,9 +215,10 @@ int2vectorrecv(PG_FUNCTION_ARGS)
215215
int2vector*result;
216216

217217
result= (int2vector*)
218-
DatumGetPointer(DirectFunctionCall2(array_recv,
218+
DatumGetPointer(DirectFunctionCall3(array_recv,
219219
PointerGetDatum(buf),
220-
ObjectIdGetDatum(INT2OID)));
220+
ObjectIdGetDatum(INT2OID),
221+
Int32GetDatum(-1)));
221222
/* sanity checks: int2vector must be 1-D, no nulls */
222223
if (result->ndim!=1||
223224
result->flags!=0||

‎src/backend/utils/adt/oid.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/oid.c,v 1.62 2005/03/29 00:17:08 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/oid.c,v 1.63 2005/07/10 21:36:21 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -257,9 +257,10 @@ oidvectorrecv(PG_FUNCTION_ARGS)
257257
oidvector*result;
258258

259259
result= (oidvector*)
260-
DatumGetPointer(DirectFunctionCall2(array_recv,
260+
DatumGetPointer(DirectFunctionCall3(array_recv,
261261
PointerGetDatum(buf),
262-
ObjectIdGetDatum(OIDOID)));
262+
ObjectIdGetDatum(OIDOID),
263+
Int32GetDatum(-1)));
263264
/* sanity checks: oidvector must be 1-D, no nulls */
264265
if (result->ndim!=1||
265266
result->flags!=0||

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp