Chuck,
I'm not disappointed any more :P I see the problem with creating COND outside of
open_schema_table() function and agree that it can't be done that way. Thus your
decision to ignore that requirement was justified.
Sorry for hasty comment...
Rafal
Chuck Bell wrote:
>> b) implement suggested change of open_schema_table()
>> signature (you can ignore the optional suggestion if you
>> don't like it).
>
> Can't do this -- see below.
>
(cut)
>> I would extend open_schema_table() with COND* parameter -
>> that would make it much more general as one could open a I_S
>> table with arbitrary select condition.
>> The usage would be then:
>>
>> COND *cond;
>>
>> <build condition cond>
>>
>> TABLE *t= open_schema_table(thd, st, cond);
>
> You cannot do this. In order to build the COND* tree you need the table. The
> method open_schema_table() opens the table. So it has to be done in 2 steps.
>