~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-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
RemoveĀ unusedĀ Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  assert(first_table == all_tables && first_table != 0);
38
38
  Select_Lex *select_lex= &lex().select_lex;
39
39
  Select_Lex_Unit *unit= &lex().unit;
40
 
  select_result *sel_result= NULL;
41
 
  bool res= false;
42
 
  bool need_start_waiting= false;
43
40
 
44
41
  if (insert_precheck(&session(), all_tables))
45
42
  {
51
48
 
52
49
  unit->set_limit(select_lex);
53
50
 
54
 
  if (! (need_start_waiting= not session().wait_if_global_read_lock(false, true)))
 
51
  if (session().wait_if_global_read_lock(false, true))
55
52
  {
56
53
    return true;
57
54
  }
58
55
 
 
56
  bool res;
59
57
  if (! (res= session().openTablesLock(all_tables)))
60
58
  {
61
59
    DRIZZLE_INSERT_SELECT_START(session().getQueryString()->c_str());
66
64
    res= insert_select_prepare(&session());
67
65
    if (not res)
68
66
    {
69
 
      sel_result= new select_insert(first_table, first_table->table, &lex().field_list, &lex().update_list, &lex().value_list, 
70
 
        lex().duplicates, lex().ignore);
 
67
      select_result* sel_result= new select_insert(first_table, first_table->table, &lex().field_list, &lex().update_list, &lex().value_list, lex().duplicates, lex().ignore);
71
68
      res= handle_select(&session(), &lex(), sel_result, OPTION_SETUP_TABLES_DONE);
72
69
 
73
70
      /*