~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 20:05:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622200558-oq3jb987di9yj70r
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
                                    table_list,
555
555
                                    &session->lex().select_lex.leaf_tables,
556
556
                                    select_insert))
557
 
    return(true);
 
557
    return true;
558
558
 
559
 
  return(false);
 
559
  return false;
560
560
}
561
561
 
562
562
 
633
633
  {
634
634
    /* it should be allocated before Item::fix_fields() */
635
635
    if (table_list->set_insert_values(session->mem_root))
636
 
      return(true);
 
636
      return true;
637
637
  }
638
638
 
639
639
  if (prepare_insert_check_table(session, table_list, fields, select_insert))
640
 
    return(true);
 
640
    return true;
641
641
 
642
642
 
643
643
  /* Prepare the fields in the statement. */
685
685
  }
686
686
 
687
687
  if (res)
688
 
    return(res);
 
688
    return res;
689
689
 
690
690
  if (not table)
691
691
    table= table_list->table;
1055
1055
                           lex->update_list, lex->value_list,
1056
1056
                           lex->duplicates,
1057
1057
                           &select_lex->where, true, false, false))
1058
 
    return(true);
 
1058
    return true;
1059
1059
 
1060
1060
  /*
1061
1061
    exclude first table from leaf tables list, because it belong to
1065
1065
  lex->leaf_tables_insert= select_lex->leaf_tables;
1066
1066
  /* skip all leaf tables belonged to view where we are insert */
1067
1067
  select_lex->leaf_tables= select_lex->leaf_tables->next_leaf;
1068
 
  return(false);
 
1068
  return false;
1069
1069
}
1070
1070
 
1071
1071
 
1219
1219
  table->mark_columns_needed_for_insert();
1220
1220
 
1221
1221
 
1222
 
  return(res);
 
1222
  return res;
1223
1223
}
1224
1224
 
1225
1225