~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-06-27 15:10:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2351.
  • Revision ID: olafvdspek@gmail.com-20110627151059-ubjo6jgjm6lcx5vr
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    select_lex->context.table_list=
63
63
      select_lex->context.first_name_resolution_table= second_table;
64
64
    res= insert_select_prepare(&session());
65
 
    if (! res && (sel_result= new select_insert(first_table,
66
 
                                                first_table->table,
67
 
                                                &lex().field_list,
68
 
                                                &lex().update_list,
69
 
                                                &lex().value_list,
70
 
                                                lex().duplicates,
71
 
                                                lex().ignore)))
 
65
    if (not res)
72
66
    {
73
 
      res= handle_select(&session(),
74
 
                         &lex(),
75
 
                         sel_result,
76
 
                         OPTION_SETUP_TABLES_DONE);
 
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);
 
69
      res= handle_select(&session(), &lex(), sel_result, OPTION_SETUP_TABLES_DONE);
77
70
      /*
78
71
         Invalidate the table in the query cache if something changed
79
72
         after unlocking when changes become visible.