Changeset: 40436137b534 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/40436137b534
Modified Files:
        sql/backends/monet5/rel_bin.c
Branch: recursive_cte
Log Message:

small fix for offset only.


diffs (23 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
@@ -4032,9 +4032,7 @@ stmt_limit_value(backend *be, sql_rel *t
                sql_exp *le = topn_limit(topn);
                sql_exp *oe = topn_offset(topn);
 
-               if (!le) { /* Don't push only offset */
-                       topn = NULL;
-               } else {
+               if (le) {
                        l = exp_bin(be, le, NULL, NULL, NULL, NULL, NULL, NULL, 
0, 0, 0);
                        if(!l)
                                return NULL;
@@ -4584,6 +4582,8 @@ rel2bin_project(backend *be, sql_rel *re
                return stmt_none(be);
 
        l = stmt_limit_value(be, topn);
+       if (!l)
+               topn = NULL;
 
        if (rel->l) { /* first construct the sub relation */
                sql_rel *l = rel->l;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to