1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Remove usage of ArrayType->flags field, use pgsql's macros BITS_PER_BYTE instead

of self-defined macros, add limit of Array  to gist__int_ops. BTW, intarray now
doesn't support NULLs in arrays.
This commit is contained in:
Teodor Sigaev
2005-11-14 16:11:37 +00:00
parent bad1a5c217
commit 08ee64ebf5
3 changed files with 16 additions and 20 deletions

View File

@ -215,7 +215,6 @@ new_intArrayType(int num)
ARR_SIZE(r) = nbytes;
ARR_NDIM(r) = NDIM;
ARR_ELEMTYPE(r) = INT4OID;
r->flags &= ~LEAFKEY;
*((int *) ARR_DIMS(r)) = num;
*((int *) ARR_LBOUND(r)) = 1;