~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    1  - error
150
150
*/
151
151
 
152
 
int mysql_update(Session *session,
153
 
                 TableList *table_list,
154
 
                 List<Item> &fields,
155
 
                 List<Item> &values,
156
 
                 COND *conds,
 
152
int mysql_update(Session *session, TableList *table_list,
 
153
                 List<Item> &fields, List<Item> &values, COND *conds,
157
154
                 uint32_t order_num, order_st *order,
158
 
                 ha_rows limit,
159
 
                 enum enum_duplicates handle_duplicates __attribute__((unused)),
 
155
                 ha_rows limit, enum enum_duplicates,
160
156
                 bool ignore)
161
157
{
162
158
  bool          using_limit= limit != HA_POS_ERROR;
1020
1016
  Connect fields with tables and create list of tables that are updated
1021
1017
*/
1022
1018
 
1023
 
int multi_update::prepare(List<Item> &not_used_values __attribute__((unused)),
1024
 
                          SELECT_LEX_UNIT *lex_unit __attribute__((unused)))
 
1019
int multi_update::prepare(List<Item> &,
 
1020
                          SELECT_LEX_UNIT *)
1025
1021
{
1026
1022
  TableList *table_ref;
1027
1023
  SQL_LIST update;
1317
1313
}
1318
1314
 
1319
1315
 
1320
 
bool multi_update::send_data(List<Item> &not_used_values __attribute__((unused)))
 
1316
bool multi_update::send_data(List<Item> &)
1321
1317
{
1322
1318
  TableList *cur_table;
1323
 
  
 
1319
 
1324
1320
  for (cur_table= update_tables; cur_table; cur_table= cur_table->next_local)
1325
1321
  {
1326
1322
    Table *table= cur_table->table;