| List: | Internals | « Previous MessageNext Message » | |
| From: | Martin Skold | Date: | September 19 2007 1:12pm |
| Subject: | Re: Getting conditions in a SELECT query | ||
| View as plain text | |||
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: > > ------------------------------------------------------------------------ > >
| Thread | ||
|---|---|---|
| • Getting conditions in a SELECT query | Piotr Franczak | 19 Sep |
| • Re: Getting conditions in a SELECT query | Martin Skold | 19 Sep |
