~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

A number of dead code removal patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
    to NULL.
314
314
  */
315
315
  session->count_cuted_fields= ((values_list.elements == 1 &&
316
 
                             !ignore) ?
317
 
                            CHECK_FIELD_ERROR_FOR_NULL :
318
 
                            CHECK_FIELD_WARN);
 
316
                                 !ignore) ?
 
317
                                CHECK_FIELD_ERROR_FOR_NULL :
 
318
                                CHECK_FIELD_WARN);
319
319
  session->cuted_fields = 0L;
320
320
  table->next_number_field=table->found_next_number_field;
321
321
 
341
341
    if (fields.elements || !value_count)
342
342
    {
343
343
      table->restoreRecordAsDefault();  // Get empty record
344
 
      if (fill_record(session, fields, *values, 0))
 
344
      if (fill_record(session, fields, *values))
345
345
      {
346
346
        if (values_list.elements != 1 && ! session->is_error())
347
347
        {
361
361
    {
362
362
      table->restoreRecordAsDefault();  // Get empty record
363
363
 
364
 
      if (fill_record(session, table->field, *values, 0))
 
364
      if (fill_record(session, table->field, *values))
365
365
      {
366
366
        if (values_list.elements != 1 && ! session->is_error())
367
367
        {
1287
1287
void select_insert::store_values(List<Item> &values)
1288
1288
{
1289
1289
  if (fields->elements)
1290
 
    fill_record(session, *fields, values, 1);
 
1290
    fill_record(session, *fields, values, true);
1291
1291
  else
1292
 
    fill_record(session, table->field, values, 1);
 
1292
    fill_record(session, table->field, values, true);
1293
1293
}
1294
1294
 
1295
1295
void select_insert::send_error(uint32_t errcode,const char *err)
1688
1688
 
1689
1689
void select_create::store_values(List<Item> &values)
1690
1690
{
1691
 
  fill_record(session, field, values, 1);
 
1691
  fill_record(session, field, values, true);
1692
1692
}
1693
1693
 
1694
1694