~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-02-07 22:02:41 UTC
  • Revision ID: brian@tangent.org-20090207220241-ez3828o1246ab2sp
Removing on typedeffed class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1617
1617
}
1618
1618
 
1619
1619
 
1620
 
int make_table_list(Session *session, SELECT_LEX *sel,
 
1620
int make_table_list(Session *session, Select_Lex *sel,
1621
1621
                    LEX_STRING *db_name, LEX_STRING *table_name)
1622
1622
{
1623
1623
  Table_ident *table_ident;
2402
2402
{
2403
2403
  LEX *lex= session->lex;
2404
2404
  Table *table= tables->table;
2405
 
  SELECT_LEX *old_all_select_lex= lex->all_selects_list;
 
2405
  Select_Lex *old_all_select_lex= lex->all_selects_list;
2406
2406
  enum_sql_command save_sql_command= lex->sql_command;
2407
 
  SELECT_LEX *lsel= tables->schema_select_lex;
 
2407
  Select_Lex *lsel= tables->schema_select_lex;
2408
2408
  ST_SCHEMA_TABLE *schema_table= tables->schema_table;
2409
 
  SELECT_LEX sel;
 
2409
  Select_Lex sel;
2410
2410
  LOOKUP_FIELD_VALUES lookup_field_vals;
2411
2411
  LEX_STRING *db_name, *table_name;
2412
2412
  bool with_i_schema;
3825
3825
  tmp_table_param->table_charset= cs;
3826
3826
  tmp_table_param->field_count= field_count;
3827
3827
  tmp_table_param->schema_table= 1;
3828
 
  SELECT_LEX *select_lex= session->lex->current_select;
 
3828
  Select_Lex *select_lex= session->lex->current_select;
3829
3829
  if (!(table= create_tmp_table(session, tmp_table_param,
3830
3830
                                field_list, (order_st*) 0, 0, 0,
3831
3831
                                (select_lex->options | session->options |
3886
3886
{
3887
3887
  char tmp[128];
3888
3888
  LEX *lex= session->lex;
3889
 
  SELECT_LEX *sel= lex->current_select;
 
3889
  Select_Lex *sel= lex->current_select;
3890
3890
  Name_resolution_context *context= &sel->context;
3891
3891
 
3892
3892
  if (!sel->item_list.elements)
4049
4049
  SYNOPSIS
4050
4050
    make_schema_select()
4051
4051
    session                  thread handler
4052
 
    sel                  pointer to SELECT_LEX
 
4052
    sel                  pointer to Select_Lex
4053
4053
    schema_table_idx     index of 'schema_tables' element
4054
4054
 
4055
4055
  RETURN
4057
4057
    1   error
4058
4058
*/
4059
4059
 
4060
 
int make_schema_select(Session *session, SELECT_LEX *sel,
 
4060
int make_schema_select(Session *session, Select_Lex *sel,
4061
4061
                       enum enum_schema_tables schema_table_idx)
4062
4062
{
4063
4063
  ST_SCHEMA_TABLE *schema_table= get_schema_table(schema_table_idx);