~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2008-08-17 07:27:12 UTC
  • mto: This revision was merged to the branch mainline in revision 346.
  • Revision ID: brian@tangent.org-20080817072712-j01qfnvsm8bfurhl
Removed belong_to_view variable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1085
1085
{
1086
1086
  LEX *lex= thd->lex;
1087
1087
  SELECT_LEX *select_lex= &lex->select_lex;
1088
 
  TABLE_LIST *first_select_leaf_table;
1089
1088
  
1090
1089
 
1091
1090
  /*
1120
1119
  assert(select_lex->leaf_tables != 0);
1121
1120
  lex->leaf_tables_insert= select_lex->leaf_tables;
1122
1121
  /* skip all leaf tables belonged to view where we are insert */
1123
 
  for (first_select_leaf_table= select_lex->leaf_tables->next_leaf;
1124
 
       first_select_leaf_table &&
1125
 
       first_select_leaf_table->belong_to_view &&
1126
 
       first_select_leaf_table->belong_to_view ==
1127
 
       lex->leaf_tables_insert->belong_to_view;
1128
 
       first_select_leaf_table= first_select_leaf_table->next_leaf)
1129
 
  {}
1130
 
  select_lex->leaf_tables= first_select_leaf_table;
 
1122
  select_lex->leaf_tables= select_lex->leaf_tables->next_leaf;
1131
1123
  return(false);
1132
1124
}
1133
1125