23 #include <drizzled/session.h>
24 #include <drizzled/statement/analyze.h>
26 #include <drizzled/sql_lex.h>
33 TableList *all_tables= lex().query_tables;
34 assert(first_table == all_tables && first_table != 0);
35 Select_Lex *select_lex= &lex().select_lex;
36 bool res= analyze_table(&session(), first_table);
37 select_lex->table_list.first= (
unsigned char*) first_table;
38 lex().query_tables= all_tables;