On Tue, 2005-09-27 at 08:33 -0700, Roger Binns wrote:
> > You should not call sqlite3_result_* from within the step
> > function of an aggregate.  Those routines may be called from
> > within the finalizer function only.
> 
> So what should I do if an error occurs?  Since I am ultimately
> running a user provided Python function there is always the
> possibility of an error happening.
> 

If an error occurs in a step function, record that fact in
the aggregate context.  Then when the finalizer is called,
check the error flag in the context and call sqlite3_result_error
at that point if it is appropriate to do so.
-- 
D. Richard Hipp <[EMAIL PROTECTED]>

Reply via email to