Changeset: 9319c6d73bae for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9319c6d73bae
Modified Files:
        sql/backends/monet5/sql.c
Branch: Oct2014
Log Message:

We're only interested in whether the count is greater than zero.
And you shouldn't just stick a size_t in an int.


diffs (12 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -496,7 +496,7 @@ table_has_updates(sql_trans *tr, sql_tab
                cnt |= BATcount(b) > 0;
                if (isTable(t) && !t->readonly && (t->base.flag != TR_NEW /* 
alter */ ) &&
                    t->persistence == SQL_PERSIST && !t->commit_action)
-                       cnt += store_funcs.count_col(tr, c, 0);
+                       cnt |= store_funcs.count_col(tr, c, 0) > 0;
                BBPunfix(b->batCacheid);
        }
        return cnt;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to