Changeset: 21777c6163df for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/21777c6163df
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: Dec2023
Log Message:

small fix in handling constant predicates. Fixes issue #7457.


diffs (12 lines):

diff --git a/sql/backends/monet5/rel_bin.c b/sql/backends/monet5/rel_bin.c
--- a/sql/backends/monet5/rel_bin.c
+++ b/sql/backends/monet5/rel_bin.c
@@ -4358,7 +4358,7 @@ rel2bin_select(backend *be, sql_rel *rel
                if (s->nrcols == 0){
                        if (!predicate && sub && !list_empty(sub->op4.lval))
                                predicate = stmt_const(be, 
bin_find_smallest_column(be, sub), stmt_bool(be, 1));
-                       else
+                       else if (!predicate)
                                predicate = const_column(be, stmt_bool(be, 1));
                        if (e->type != e_cmp) {
                                sql_subtype *bt = sql_bind_localtype("bit");
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to