Roger Binns wrote:
It isn't 100% clear to me what the semantics are for implementing
aggregate user functions.  The sqlite3_create_function call shows
that they are done via xStep and xFinal callbacks.  I assume that
xStep is called for each relevant row.  When is xFinal called?

If xFinal is always called then that isn't a problem since I
can clean up then.  However that does lead to a second issue
of not knowing if the xFinal call is during success or failure.


xFinal is always called. The built-in min() and max() functions depend on this to clean up memory they might have allocated.


-- D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565



Reply via email to