mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Missed adding extra argument to array_recv in a couple of places
(harmless, actually, but let's be tidy).
This commit is contained in:
parent
d78397d301
commit
8826fe859f
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.66 2005/03/29 00:17:08 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/adt/int.c,v 1.67 2005/07/10 21:36:21 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -215,9 +215,10 @@ int2vectorrecv(PG_FUNCTION_ARGS)
|
|||||||
int2vector *result;
|
int2vector *result;
|
||||||
|
|
||||||
result = (int2vector *)
|
result = (int2vector *)
|
||||||
DatumGetPointer(DirectFunctionCall2(array_recv,
|
DatumGetPointer(DirectFunctionCall3(array_recv,
|
||||||
PointerGetDatum(buf),
|
PointerGetDatum(buf),
|
||||||
ObjectIdGetDatum(INT2OID)));
|
ObjectIdGetDatum(INT2OID),
|
||||||
|
Int32GetDatum(-1)));
|
||||||
/* sanity checks: int2vector must be 1-D, no nulls */
|
/* sanity checks: int2vector must be 1-D, no nulls */
|
||||||
if (result->ndim != 1 ||
|
if (result->ndim != 1 ||
|
||||||
result->flags != 0 ||
|
result->flags != 0 ||
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/adt/oid.c,v 1.62 2005/03/29 00:17:08 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/adt/oid.c,v 1.63 2005/07/10 21:36:21 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -257,9 +257,10 @@ oidvectorrecv(PG_FUNCTION_ARGS)
|
|||||||
oidvector *result;
|
oidvector *result;
|
||||||
|
|
||||||
result = (oidvector *)
|
result = (oidvector *)
|
||||||
DatumGetPointer(DirectFunctionCall2(array_recv,
|
DatumGetPointer(DirectFunctionCall3(array_recv,
|
||||||
PointerGetDatum(buf),
|
PointerGetDatum(buf),
|
||||||
ObjectIdGetDatum(OIDOID)));
|
ObjectIdGetDatum(OIDOID),
|
||||||
|
Int32GetDatum(-1)));
|
||||||
/* sanity checks: oidvector must be 1-D, no nulls */
|
/* sanity checks: oidvector must be 1-D, no nulls */
|
||||||
if (result->ndim != 1 ||
|
if (result->ndim != 1 ||
|
||||||
result->flags != 0 ||
|
result->flags != 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user