Manish Chakrabarti writes:
> I have a related question. I am looking for a pretty robust SQL parser which
> is also
> "transparent" in the sense that one can go into it and modify the query
> processing parts (i.e. "actions")?
> 
> Does MySQL source distribution include the lex/yacc files specifying the SQL
> grammar,
> and also are there some "hooks" into the parser/query processing engine of
> MySQL?
> So that I can have handles into the parse tree (which I plan to use for my
> purpose).
> I could not find this talked about in the mysql maling lists. I am basically
> interested in
> extracting the query parsing engine out of mysql. Is it possible to do that?
> 
> Thanks!
> 
> Manish
> 


Hi!

No, I am afraid that would not be easy.

The reason for that is that we did our best to make our parser
fastest available, so we actually integrated it very firmly with the
rest of the code. Actually some 5 - 25 % of processing  of the query
is performed by the parser.

But that should not stop you adding code to MySQL.

If you have problems on that front, write to
[EMAIL PROTECTED]


Regards,

Sinisa

     For technical support contracts, goto http://order.mysql.com
                        
      ____  __     _____   _____  ___     ==  MySQL AB
     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic
    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
             /*/             \*\                Developers Team

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to