~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_insert.cc

  • Committer: Monty Taylor
  • Date: 2008-07-09 15:52:52 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: monty@inaugust.com-20080709155252-lnzmxxje1g40z3a7
Warning fixes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
static int check_insert_fields(THD *thd, TABLE_LIST *table_list,
66
66
                               List<Item> &fields, List<Item> &values,
67
 
                               bool check_unique, table_map *map)
 
67
                               bool check_unique,
 
68
                               table_map *map __attribute__((__unused__)))
68
69
{
69
70
  TABLE *table= table_list->table;
70
71
 
160
161
*/
161
162
 
162
163
static int check_update_fields(THD *thd, TABLE_LIST *insert_table_list,
163
 
                               List<Item> &update_fields, table_map *map)
 
164
                               List<Item> &update_fields,
 
165
                               table_map *map __attribute__((__unused__)))
164
166
{
165
167
  TABLE *table= insert_table_list->table;
166
168
  my_bool timestamp_mark= false;
203
205
*/
204
206
 
205
207
static
206
 
void upgrade_lock_type(THD *thd, thr_lock_type *lock_type,
 
208
void upgrade_lock_type(THD *thd __attribute__((__unused__)),
 
209
                       thr_lock_type *lock_type,
207
210
                       enum_duplicates duplic,
208
 
                       bool is_multi_insert)
 
211
                       bool is_multi_insert __attribute__((__unused__)))
209
212
{
210
213
  if (duplic == DUP_UPDATE ||
211
214
      (duplic == DUP_REPLACE && *lock_type == TL_WRITE_CONCURRENT_INSERT))
582
585
*/
583
586
 
584
587
static bool mysql_prepare_insert_check_table(THD *thd, TABLE_LIST *table_list,
585
 
                                             List<Item> &fields,
 
588
                                             List<Item> &fields __attribute__((__unused__)),
586
589
                                             bool select_insert)
587
590
{
588
591
  
640
643
                          TABLE *table, List<Item> &fields, List_item *values,
641
644
                          List<Item> &update_fields, List<Item> &update_values,
642
645
                          enum_duplicates duplic,
643
 
                          COND **where, bool select_insert,
 
646
                          COND **where __attribute__((__unused__)),
 
647
                          bool select_insert,
644
648
                          bool check_fields, bool abort_on_warning)
645
649
{
646
650
  SELECT_LEX *select_lex= &thd->lex->select_lex;