~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Brian Aker
  • Date: 2008-08-05 04:10:42 UTC
  • mfrom: (261.2.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: brian@tangent.org-20080805041042-1l4893r3bwy2lxz2
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1293
1293
    temp_fields.concat(fields_for_table[cnt]);
1294
1294
 
1295
1295
    /* Make an unique key over the first field to avoid duplicated updates */
1296
 
    memset((char*) &group, 0, sizeof(group));
 
1296
    memset(&group, 0, sizeof(group));
1297
1297
    group.asc= 1;
1298
1298
    group.item= (Item**) temp_fields.head_ref();
1299
1299
 
1453
1453
      do
1454
1454
      {
1455
1455
        tbl->file->position(tbl->record[0]);
1456
 
        memcpy((char*) tmp_table->field[field_num]->ptr,
1457
 
               (char*) tbl->file->ref, tbl->file->ref_length);
 
1456
        memcpy(tmp_table->field[field_num]->ptr,
 
1457
               tbl->file->ref, tbl->file->ref_length);
1458
1458
        field_num++;
1459
1459
      } while ((tbl= tbl_it++));
1460
1460