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
2 changes: 1 addition & 1 deletion src/rum_arr_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ rum_extract_anyarray(PG_FUNCTION_ARGS)
{
/* Use array's size as additional info */
(*addInfo)[i] = Int32GetDatum(*nentries);
(*addInfoIsNull)[i] = BoolGetDatum(false);
(*addInfoIsNull)[i] = false;
}

/* we should not free array, entries[i] points into it */
Expand Down
2 changes: 1 addition & 1 deletion src/rum_debug_funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ get_entry_leaf_posting_tree_result(RumPageItemsState piState)
piState->nulls[counter++] = true;

/* Returning the root of the posting tree */
piState->values[counter++] = true;
piState->values[counter++] = BoolGetDatum(true);
piState->values[counter++] =
UInt32GetDatum(RumGetPostingTree(piState->curItup));

Expand Down
6 changes: 3 additions & 3 deletions src/rum_ts_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,11 +1214,11 @@ build_tsvector_entry(TSVector vector, WordEntry *we)
static Datum
build_tsvector_hash_entry(TSVector vector, WordEntry *we)
{
int32 hash_value;
Datum hash_value;

hash_value = hash_any((const unsigned char *) (STRPTR(vector) + we->pos),
we->len);
return Int32GetDatum(hash_value);
return hash_value;
}

/*
Expand Down Expand Up @@ -1369,7 +1369,7 @@ build_tsquery_entry(TSQuery query, QueryOperand *operand)
static Datum
build_tsquery_hash_entry(TSQuery query, QueryOperand *operand)
{
int32 hash_value;
Datum hash_value;

hash_value = hash_any(
(const unsigned char *) (GETOPERAND(query) + operand->distance),
Expand Down