~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-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:
36
36
  assert(first_table == all_tables && first_table != 0);
37
37
  Select_Lex *select_lex= &lex().select_lex;
38
38
  Select_Lex_Unit *unit= &lex().unit;
39
 
  select_result *sel_result= NULL;
40
 
  bool res;
41
39
 
42
40
  if (insert_precheck(&session(), all_tables))
43
41
  {
54
52
    return true;
55
53
  }
56
54
 
 
55
  bool res;
57
56
  if (! (res= session().openTablesLock(all_tables)))
58
57
  {
59
58
    /* Skip first table, which is the table we are inserting in */
64
63
    res= insert_select_prepare(&session());
65
64
    if (not res)
66
65
    {
67
 
      sel_result= new select_insert(first_table, first_table->table, &lex().field_list, &lex().update_list,&lex().value_list, 
68
 
        lex().duplicates, lex().ignore);
 
66
      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);
69
67
      res= handle_select(&session(), &lex(), sel_result, OPTION_SETUP_TABLES_DONE);
70
68
      /*
71
69
         Invalidate the table in the query cache if something changed