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

2007-07-18 Thread drh
<[EMAIL PROTECTED]> wrote: > 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. It is not a bu

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'

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

2007-07-18 Thread John Stanton
Have you checked to ensure that you database handle is correct? Your function inherits it as user data, but is it corrupted? [EMAIL PROTECTED] wrote: 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

[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