Skip to content

Commit

Permalink
Fix wrong use of Const instead of Datum
Browse files Browse the repository at this point in the history
PG16 converted the *GetDatum() and DatumGet*() macros to inline
functions. This enabled the compiler to catch a wrong use of Const
instead of Datum.

postgres/postgres@c8b2ef0
  • Loading branch information
konskov committed Nov 3, 2023
1 parent c58a640 commit 187b124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsl/src/nodes/decompress_chunk/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ decompress_chunk_begin(CustomScanState *node, EState *estate, int eflags)
if (IsA(constified, Const))
{
Const *c = castNode(Const, constified);
if (c->constisnull || !DatumGetBool(c))
if (c->constisnull || !DatumGetBool(c->constvalue))
{
chunk_state->have_constant_false_vectorized_qual = true;
break;
Expand Down

0 comments on commit 187b124

Please sign in to comment.