~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: lbieber
  • Date: 2010-09-11 14:54:46 UTC
  • mfrom: (1755.2.2 refactor)
  • mto: This revision was merged to the branch mainline in revision 1758.
  • Revision ID: lbieber@orisndriz03-20100911145446-c7uo91jk29k6ctat
Merge Brian - Small set of refactoring (includes one case of memset on a table object).

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
  /*
318
318
    Fill in the given fields and dump it to the table cursor
319
319
  */
320
 
  memset(&info, 0, sizeof(info));
321
320
  info.ignore= ignore;
322
321
  info.handle_duplicates=duplic;
323
322
  info.update_fields= &update_fields;
1042
1041
                             List<Item> *update_fields,
1043
1042
                             List<Item> *update_values,
1044
1043
                             enum_duplicates duplic,
1045
 
                             bool ignore_check_option_errors)
1046
 
  :table_list(table_list_par), table(table_par), fields(fields_par),
1047
 
   autoinc_value_of_last_inserted_row(0),
1048
 
   insert_into_view(table_list_par && 0 != 0)
 
1044
                             bool ignore_check_option_errors) :
 
1045
  table_list(table_list_par), table(table_par), fields(fields_par),
 
1046
  autoinc_value_of_last_inserted_row(0),
 
1047
  insert_into_view(table_list_par && 0 != 0)
1049
1048
{
1050
 
  memset(&info, 0, sizeof(info));
1051
1049
  info.handle_duplicates= duplic;
1052
1050
  info.ignore= ignore_check_option_errors;
1053
1051
  info.update_fields= update_fields;