On 1/29/19, Andy Goth <andrew.m.g...@gmail.com> wrote: > > Question: does xFinal() get called if an error occurs during (or between) > calling xStep()? Are errors even possible? I'm curious if there's any way > to leak the Tcl_Obj pointed to by the aggregate context.
xFinal() gets called by sqlite3_reset() or sqlite3_finalize() if it hasn't been called already when those routines are first invoked. You might also what to add the ability to specify xValue() and xInverse() methods so that you can do window functions in TCL as well. See https://www.sqlite.org/windowfunctions.html#user_defined_aggregate_window_functions for additional information. -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users