Skip to content

Commit c46de57

Browse files
committed
this
1 parent b8c60ca commit c46de57

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/query.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -519,21 +519,24 @@ void extractClauseFromVar(
519519
#endif
520520
Relids base_relids, Var *node, List **quals)
521521
{
522+
MulticornBaseQual *result;
523+
Expr *true_expr;
522524
if (!bms_is_subset(pull_varnos(
523525
#if PG_VERSION_NUM >= 140000
524526
root,
525527
#endif
526-
(Node *) node), base_relids))
528+
(Node *) node), base_relids)) {
527529
return;
530+
}
531+
532+
true_expr = (Expr *) makeConst(BOOLOID, // Type OID for boolean
533+
-1, // typmod
534+
InvalidOid, // collation
535+
sizeof(bool), // constlen
536+
BoolGetDatum(true), // the actual value
537+
false, // isnull
538+
true); // constbyval
528539

529-
Expr *true_expr = (Expr *) makeConst(BOOLOID, // Type OID for boolean
530-
-1, // typmod
531-
InvalidOid, // collation
532-
sizeof(bool), // constlen
533-
BoolGetDatum(true), // the actual value
534-
false, // isnull
535-
true); // constbyval
536-
537540
result = makeQual(var->varattno, "=", true_expr, false, false);
538541
*quals = lappend(*quals, result);
539542
}

0 commit comments

Comments
 (0)