Re: [sqlite] Error with xBestIndex

2014-09-11 Thread dave
age- > From: sqlite-users-boun...@sqlite.org > [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of vendomele > Sent: Wednesday, September 10, 2014 10:01 AM > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] Error with xBestIndex > > > Thanks a lot Dave > > The

Re: [sqlite] Error with xBestIndex

2014-09-11 Thread vendomele
Thanks a lot Dave The problem came from SQLite3_vtab's attributte: zErrMsg. It was not initialized to null. Now I have more crashes, I can continue the development of the loadable extension. For your information, I develop in Delphi, it is not too difficult to transcribe C in Delphi --

Re: [sqlite] Error with xBestIndex

2014-09-11 Thread vendomele
Hi Dominique, Yes I started by creating a user defined function, I followed the example of the "half" function we can find everywhere on the Internet and it works My loadable extension manages to create a virtual table when I send the "CREATE VIRTUAL TABLE x USING ..." SQL command, I can see the

Re: [sqlite] Error with xBestIndex

2014-09-11 Thread vendomele
Hi Dominique, Yes I started by creating a user defined function, I followed the example of the "half" function we can find everywhere on the Internet and it works My loadable extension manages to create a virtual table when I send the "CREATE VIRTUAL TABLE x USING ..." SQL command, I can see the

Re: [sqlite] Error with xBestIndex

2014-09-10 Thread dave
eral Discussion of SQLite Database > Subject: Re: [sqlite] Error with xBestIndex > > > On Wed, Sep 10, 2014 at 11:53 AM, vendomele <fve...@gmail.com> wrote: > > > I developed a loadable extension, but after the execution > of the callback > > "xBestIndex" th

Re: [sqlite] Error with xBestIndex

2014-09-10 Thread Dominique Devienne
On Wed, Sep 10, 2014 at 11:53 AM, vendomele wrote: > I developed a loadable extension, but after the execution of the callback > "xBestIndex" there is a crash. > > So I made it simple for this callback by implementing only one line that > returns SQLITE_OK. > > The crash still