Hi Joe,
      Thanks a lot for pointing me to that structure and the method - I
think that was something that I was looking for. However, how do I pass the
SQL statement, get it parsed and populate the structure? sqlite3SelectNew()
is a function that I saw, however that just takes in the different 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 PROTECTED]> wrote:
> >     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
> > different sections of the query (SELECT part, FROM part etc.). If it is
> > possible, then could someone tell me which structure holds the parse
> tree
> > and how I can get a handle to the root node of that tree? Looking at the
> > code I see that the sParse object holds the pVdbe member - but that
> holds
> > the transformed query (to VDBE) - That is not what I want.
>
> See sqlite3PrintSelect() in select.c.
>
> Or for more detailed output:
>
>   http://www.mail-archive.com/sqlite-users@sqlite.org/msg17096.html
>
>
>
>       
> ____________________________________________________________________________________
> Park yourself in front of a world of choices in alternative vehicles.
> Visit the Yahoo! Auto Green Center.
> http://autos.yahoo.com/green_center/
>
>
> -----------------------------------------------------------------------------
> To unsubscribe, send email to [EMAIL PROTECTED]
>
> -----------------------------------------------------------------------------
>
>

Reply via email to