~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
                 COND *conds,
178
178
                 uint order_num, ORDER *order,
179
179
                 ha_rows limit,
180
 
                 enum enum_duplicates handle_duplicates __attribute__((__unused__)),
 
180
                 enum enum_duplicates handle_duplicates __attribute__((unused)),
181
181
                 bool ignore)
182
182
{
183
183
  bool          using_limit= limit != HA_POS_ERROR;
1046
1046
  Connect fields with tables and create list of tables that are updated
1047
1047
*/
1048
1048
 
1049
 
int multi_update::prepare(List<Item> &not_used_values __attribute__((__unused__)),
1050
 
                          SELECT_LEX_UNIT *lex_unit __attribute__((__unused__)))
 
1049
int multi_update::prepare(List<Item> &not_used_values __attribute__((unused)),
 
1050
                          SELECT_LEX_UNIT *lex_unit __attribute__((unused)))
1051
1051
{
1052
1052
  TABLE_LIST *table_ref;
1053
1053
  SQL_LIST update;
1289
1289
    temp_fields.concat(fields_for_table[cnt]);
1290
1290
 
1291
1291
    /* Make an unique key over the first field to avoid duplicated updates */
1292
 
    bzero((char*) &group, sizeof(group));
 
1292
    memset((char*) &group, 0, sizeof(group));
1293
1293
    group.asc= 1;
1294
1294
    group.item= (Item**) temp_fields.head_ref();
1295
1295
 
1340
1340
}
1341
1341
 
1342
1342
 
1343
 
bool multi_update::send_data(List<Item> &not_used_values __attribute__((__unused__)))
 
1343
bool multi_update::send_data(List<Item> &not_used_values __attribute__((unused)))
1344
1344
{
1345
1345
  TABLE_LIST *cur_table;
1346
1346