~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/insert_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:
40
40
  bool res= false;
41
41
  bool need_start_waiting= false;
42
42
 
43
 
  if (insert_precheck(getSession(), all_tables))
 
43
  if (insert_precheck(&session(), all_tables))
44
44
  {
45
45
    return true;
46
46
  }
63
63
    select_lex->table_list.first= (unsigned char*) second_table;
64
64
    select_lex->context.table_list=
65
65
      select_lex->context.first_name_resolution_table= second_table;
66
 
    res= insert_select_prepare(getSession());
 
66
    res= insert_select_prepare(&session());
67
67
    if (! res && (sel_result= new select_insert(first_table,
68
68
                                                first_table->table,
69
69
                                                &lex().field_list,
72
72
                                                lex().duplicates,
73
73
                                                lex().ignore)))
74
74
    {
75
 
      res= handle_select(getSession(), 
 
75
      res= handle_select(&session(), 
76
76
                         &lex(), 
77
77
                         sel_result, 
78
78
                         OPTION_SETUP_TABLES_DONE);