~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/replace_select.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 10:44:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310104418-9nye3afuge7hnf5g
Statement::session()

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  select_result *sel_result= NULL;
39
39
  bool res;
40
40
 
41
 
  if (insert_precheck(getSession(), all_tables))
 
41
  if (insert_precheck(&session(), all_tables))
42
42
  {
43
43
    return true;
44
44
  }
60
60
    select_lex->table_list.first= (unsigned char*) second_table;
61
61
    select_lex->context.table_list=
62
62
      select_lex->context.first_name_resolution_table= second_table;
63
 
    res= insert_select_prepare(getSession());
 
63
    res= insert_select_prepare(&session());
64
64
    if (! res && (sel_result= new select_insert(first_table,
65
65
                                                first_table->table,
66
66
                                                &lex().field_list,
69
69
                                                lex().duplicates,
70
70
                                                lex().ignore)))
71
71
    {
72
 
      res= handle_select(getSession(),
 
72
      res= handle_select(&session(),
73
73
                         &lex(),
74
74
                         sel_result,
75
75
                         OPTION_SETUP_TABLES_DONE);