~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2009-05-14 23:59:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1021.
  • Revision ID: brian@gaz-20090514235950-9f1f1rbcpmxhaanv
Removed dead code from table_list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2263
2263
 
2264
2264
 
2265
2265
/*
2266
 
  Do end-of-prepare fixup for list of tables and their merge-VIEWed tables
2267
 
 
2268
 
  SYNOPSIS
2269
 
    fix_prepare_info_in_table_list()
2270
 
      session  Thread handle
2271
 
      tbl  List of tables to process
2272
 
 
2273
 
  DESCRIPTION
2274
 
    Perform end-end-of prepare fixup for list of tables, if any of the tables
2275
 
    is a merge-algorithm VIEW, recursively fix up its underlying tables as
2276
 
    well.
2277
 
 
2278
 
*/
2279
 
 
2280
 
static void fix_prepare_info_in_table_list(Session *session, TableList *tbl)
2281
 
{
2282
 
  for (; tbl; tbl= tbl->next_local)
2283
 
  {
2284
 
    if (tbl->on_expr)
2285
 
    {
2286
 
      tbl->prep_on_expr= tbl->on_expr;
2287
 
      tbl->on_expr= tbl->on_expr->copy_andor_structure(session);
2288
 
    }
2289
 
    fix_prepare_info_in_table_list(session, tbl->merge_underlying_list);
2290
 
  }
2291
 
}
2292
 
 
2293
 
 
2294
 
/*
2295
2266
  There are Select_Lex::add_table_to_list &
2296
2267
  Select_Lex::set_lock_for_tables are in sql_parse.cc
2297
2268