~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/insert.cc

  • Committer: Lee Bieber
  • Date: 2011-02-21 21:20:44 UTC
  • mfrom: (2187.1.2 build)
  • Revision ID: kalebral@gmail.com-20110221212044-x1j9pmv0230febuz
Merge Brian - getLex() usage and fix for table_name creation during admin commands.
Merge Olaf - Use List::begin() and Use List::iterator instead of List_iterator_fast

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
bool statement::Insert::execute()
32
32
{
33
 
  TableList *first_table= (TableList *) getSession()->lex->select_lex.table_list.first;
34
 
  TableList *all_tables= getSession()->lex->query_tables;
 
33
  TableList *first_table= (TableList *) getSession()->getLex()->select_lex.table_list.first;
 
34
  TableList *all_tables= getSession()->getLex()->query_tables;
35
35
  assert(first_table == all_tables && first_table != 0);
36
36
  bool need_start_waiting= false;
37
37
 
49
49
 
50
50
  bool res= insert_query(getSession(),
51
51
                         all_tables,
52
 
                         getSession()->lex->field_list,
53
 
                         getSession()->lex->many_values,
54
 
                         getSession()->lex->update_list,
55
 
                         getSession()->lex->value_list,
56
 
                         getSession()->lex->duplicates,
57
 
                         getSession()->lex->ignore);
 
52
                         getSession()->getLex()->field_list,
 
53
                         getSession()->getLex()->many_values,
 
54
                         getSession()->getLex()->update_list,
 
55
                         getSession()->getLex()->value_list,
 
56
                         getSession()->getLex()->duplicates,
 
57
                         getSession()->getLex()->ignore);
58
58
  /*
59
59
     Release the protection against the global read lock and wake
60
60
     everyone, who might want to set a global read lock.