Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pgsql/pc_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Datum pcpoint_get_values(PG_FUNCTION_ARGS)
PG_RETURN_ARRAYTYPE_P(result);
}

static inline bool array_get_isnull(const bits8 *nullbitmap, int offset)
static inline bool array_get_isnull(const uint8 *nullbitmap, int offset)
{
if (nullbitmap == NULL)
{
Expand All @@ -147,7 +147,7 @@ pcpatch_from_point_array(ArrayType *array, FunctionCallInfo fcinfo)
#endif
{
int nelems;
bits8 *bitmap;
uint8 *bitmap;
size_t offset = 0;
int i;
uint32 pcid = 0;
Expand Down Expand Up @@ -222,7 +222,7 @@ pcpatch_from_patch_array(ArrayType *array, FunctionCallInfo fcinfo)
#endif
{
int nelems;
bits8 *bitmap;
uint8 *bitmap;
size_t offset = 0;
int i;
uint32 pcid = 0;
Expand Down Expand Up @@ -1127,7 +1127,7 @@ const char **array_to_cstring_array(ArrayType *array, int *size)
int i, j, offset = 0;
int nelems = ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array));
const char **cstring = nelems ? pcalloc(nelems * sizeof(char *)) : NULL;
bits8 *bitmap = ARR_NULLBITMAP(array);
uint8 *bitmap = ARR_NULLBITMAP(array);
for (i = j = 0; i < nelems; ++i)
{
text *array_text;
Expand Down
7 changes: 6 additions & 1 deletion pgsql/pc_pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ static Oid pointcloud_get_full_version_schema()
#if PGSQL_VERSION < 140
FuncCandidateList clist =
FuncnameGetCandidates(names, -1, NIL, false, false, false);
#else
#elif PGSQL_VERSION < 190
FuncCandidateList clist =
FuncnameGetCandidates(names, -1, NIL, false, false, false, false);
#else
int fgc_flags;
FuncCandidateList clist =
FuncnameGetCandidates(names, -1, NIL, false, false, false, false,
&fgc_flags);
#endif
if (!clist)
return InvalidOid;
Expand Down