diff options
| author | Tom Lane | 2011-01-09 01:24:08 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-01-09 01:26:14 +0000 |
| commit | adf328c0e1bfde90b944d53f7197fc436bc0c707 (patch) | |
| tree | 49b7c22708ff743dd85af5aa0ca82338f1f2b390 /src/include/utils/array.h | |
| parent | 4d1b76e49eb848b046ddb1beb0f4589816ec8261 (diff) | |
Add array_contains_nulls() function in arrayfuncs.c.
This will support fixing contrib/intarray (and probably other places)
so that they don't have to fail on arrays that contain a null bitmap
but no live null entries.
Diffstat (limited to 'src/include/utils/array.h')
| -rw-r--r-- | src/include/utils/array.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/array.h b/src/include/utils/array.h index 78a4c8a72f3..7f7e744cb12 100644 --- a/src/include/utils/array.h +++ b/src/include/utils/array.h @@ -244,6 +244,7 @@ extern void deconstruct_array(ArrayType *array, Oid elmtype, int elmlen, bool elmbyval, char elmalign, Datum **elemsp, bool **nullsp, int *nelemsp); +extern bool array_contains_nulls(ArrayType *array); extern ArrayBuildState *accumArrayResult(ArrayBuildState *astate, Datum dvalue, bool disnull, Oid element_type, |
