Re: [sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-18 Thread ggeeoo
John Stanton wrote: > Have you checked to ensure that you database handle is correct? > Your function inherits it as user data, but is it corrupted? The db handle is passed correctly. I'm starting to suspect that this is a bug of sqlite. Even a simple "select 0" fails inside an aggregate. Here'

[sqlite] "Library routine called out of sequence" and user-defined aggregates

2007-07-17 Thread ggeeoo
I'm getting "Library routine called out of sequence" when I try to execute an insertion inside an aggregate that I have created myself. Here's a sample c program: #include #include void MyAggregateFuncStep(sqlite3_context* context,int argc,sqlite3_value** argv) { // Do nothing } void M