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

bugfix: recompile the NEST aggregate upon first loading


diffs (14 lines):

diff --git a/sql/backends/monet5/sql_statement.c 
b/sql/backends/monet5/sql_statement.c
--- a/sql/backends/monet5/sql_statement.c
+++ b/sql/backends/monet5/sql_statement.c
@@ -2884,6 +2884,10 @@ stmt *stmt_nest(backend *be, stmt *ops, 
        (void) ext; // not used ftm
        assert(ops->type == st_list);
 
+       // compile the aggregate function if it's not already available
+       if (aggr->aggr->sql == 1 && backend_create_subaggr(be, aggr) < 0)
+               return NULL;
+
        q = newStmt(be->mb, aggr->aggr->mod, aggr->aggr->imp);
        if(!q) return NULL;
        setVarType(be->mb, getArg(q, 0), newBatType( ((sql_subtype*) 
aggr->res->h->data)->type->localtype ));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to