Re: [sqlite] Parser information

2007-08-02 Thread Rohit Mordani
Hi Ken, Do you have an answer to what external api we can use to get the Select parse tree? Rohit On 7/31/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > > --- Ken <[EMAIL PROTECTED]> wrote: > > You should be using the external API calls not the internal sqlite calls > and types. > > Please

Re: [sqlite] Parser information

2007-07-31 Thread Rohit Mordani
List is null. I thought that pEList > would be populated by sqlite3Select(). What other function calls do I need > to make before this? > > Rohit > > On 7/31/07, Rohit Mordani wrote: > > > > So just to confirm - the Select structure (Select *p) is populated a

Re: [sqlite] Parser information

2007-07-31 Thread Rohit Mordani
BTW, tempTable has 2 columns name varchar(20) and phone varchar(20) and I have 2 entries in tempTable Thanks Rohit On 7/31/07, Rohit Mordani <[EMAIL PROTECTED]> wrote: > > Hi, >This is my program... > > #include "sqliteInt.h" > > > int main(i

Re: [sqlite] Parser information

2007-07-31 Thread Rohit Mordani
lite3PrintSelect(, 4); return 1; } When I run the program, it seg faults when sqlite3PrintSelect() calls sqlite3PrintExprlist() since sel->pEList is null. I thought that pEList would be populated by sqlite3Select(). What other function calls do I need to make before this? Rohit On 7/31/07, Rohit Mo

Re: [sqlite] Parser information

2007-07-31 Thread Rohit Mordani
So just to confirm - the Select structure (Select *p) is populated after the call to sqlite3Select() method right? In that case if I call sqlite3PrintSelect() after this then the statement will be printed right? Thanks Rohit On 7/27/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > > --- R

Re: [sqlite] Parser information

2007-07-27 Thread Rohit Mordani
sections of the SQL Statement. I want to start with a user specified SQL query and eventually get the Select structure. Is there a sequence of calls that I can make to achieve this? Thanks Rohit On 7/26/07, Joe Wilson <[EMAIL PROTECTED]> wrote: > > --- Rohit Mordani <[EMAIL PR

[sqlite] Parser information

2007-07-26 Thread Rohit Mordani
Hi, I wanted to know if I can reuse the parser from sqlite. I want the different sections of the query (like the SELECT part, the FROM part etc.) I wanted to know if there is a parsed tree of some sorts that is the end result of parsing (in sqlite) and if I can use this tree to retrieve the