Changeset: d8531896322d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d8531896322d
Modified Files:
        sql/server/rel_statistics.c
Branch: nested
Log Message:

get the right row count


diffs (12 lines):

diff --git a/sql/server/rel_statistics.c b/sql/server/rel_statistics.c
--- a/sql/server/rel_statistics.c
+++ b/sql/server/rel_statistics.c
@@ -766,7 +766,7 @@ rel_get_statistics_(visitor *v, sql_rel 
                }
                /* Set table row count. TODO? look for remote tables. Don't 
look at storage for declared tables, because it won't be cleaned */
                if (isTable(t) && t->s && !isDeclaredTable(t)) /* count active 
rows only */
-                       set_count_prop(v->sql->sa, rel, 
(BUN)store->storage_api.count_del(v->sql->session->tr, t, CNT_ACTIVE));
+                       set_count_prop(v->sql->sa, rel, 
(BUN)store->storage_api.count_col(v->sql->session->tr, 
ol_last_node(t->columns)->data, CNT_ACTIVE));
                break;
        }
        case op_inter:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to