Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Getting conditions in a SELECT query

From: Martin Skold <Martin.Skold(at)mysql.com>
Date: Wed Sep 19 2007 - 09:12:43 EDT


Hi Piotr!

The COND *cond is a sub-tree of the item tree that represents the query plan. To analyze it you need to traverse the tree using the Item::traverse_cond method. The only example of how this can be done is in the ndbcluster handler, see sql/ha_ndbcluster_cond.cc. There is no text representation of the condition. The complete query can be found in current_thd->query.

BR
-- Martin
Piotr Franczak wrote:
>
> ------------------------------------------------------------------------
>
>

-- 
MySQL Internals Mailing List
For list archives: 
http://lists.mysql.com/internals
To unsubscribe:    
http://lists.mysql.com/internals?unsub=lists@pantek.com
Received on Wed Sep 19 07:12:54 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:59:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library