~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_select.cc

  • Committer: Brian Aker
  • Date: 2008-07-26 18:39:33 UTC
  • mfrom: (212.1.3 codestyle)
  • Revision ID: brian@tangent.org-20080726183933-hueup0fcy2zs1hug
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
4587
4587
static bool
4588
4588
update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
4589
4589
                    uint tables, COND *cond,
4590
 
                    COND_EQUAL *cond_equal __attribute__((__unused__)),
 
4590
                    COND_EQUAL *cond_equal __attribute__((unused)),
4591
4591
                    table_map normal_tables, SELECT_LEX *select_lex,
4592
4592
                    SARGABLE_PARAM **sargables)
4593
4593
{
4937
4937
                 table_map remaining_tables,
4938
4938
                 uint      idx,
4939
4939
                 double    record_count,
4940
 
                 double    read_time __attribute__((__unused__)))
 
4940
                 double    read_time __attribute__((unused)))
4941
4941
{
4942
4942
  KEYUSE *best_key=         0;
4943
4943
  uint best_max_key_part=   0;
6246
6246
  Find how much space the prevous read not const tables takes in cache.
6247
6247
*/
6248
6248
 
6249
 
static void calc_used_field_length(THD *thd __attribute__((__unused__)),
 
6249
static void calc_used_field_length(THD *thd __attribute__((unused)),
6250
6250
                                   JOIN_TAB *join_tab)
6251
6251
{
6252
6252
  uint null_fields,blobs,fields,rec_length;
10618
10618
    new_created field
10619
10619
*/
10620
10620
 
10621
 
static Field *create_tmp_field_from_item(THD *thd __attribute__((__unused__)),
 
10621
static Field *create_tmp_field_from_item(THD *thd __attribute__((unused)),
10622
10622
                                         Item *item, TABLE *table,
10623
10623
                                         Item ***copy_func, bool modify_item,
10624
10624
                                         uint convert_blob_length)
10742
10742
    new_created field
10743
10743
*/
10744
10744
 
10745
 
Field *create_tmp_field_for_schema(THD *thd __attribute__((__unused__)),
 
10745
Field *create_tmp_field_for_schema(THD *thd __attribute__((unused)),
10746
10746
                                   Item *item, TABLE *table)
10747
10747
{
10748
10748
  if (item->field_type() == MYSQL_TYPE_VARCHAR)
10796
10796
                        Item ***copy_func, Field **from_field,
10797
10797
                        Field **default_field,
10798
10798
                        bool group, bool modify_item,
10799
 
                        bool table_cant_handle_bit_fields __attribute__((__unused__)),
 
10799
                        bool table_cant_handle_bit_fields __attribute__((unused)),
10800
10800
                        bool make_copy_field,
10801
10801
                        uint convert_blob_length)
10802
10802
{
16304
16304
static ORDER *
16305
16305
create_distinct_group(THD *thd, Item **ref_pointer_array,
16306
16306
                      ORDER *order_list, List<Item> &fields,
16307
 
                      List<Item> &all_fields __attribute__((__unused__)),
 
16307
                      List<Item> &all_fields __attribute__((unused)),
16308
16308
                      bool *all_order_by_fields_used)
16309
16309
{
16310
16310
  List_iterator<Item> li(fields);
17189
17189
  @param select   pointer to st_select_lex which subselects joins we will free
17190
17190
*/
17191
17191
 
17192
 
void free_underlaid_joins(THD *thd __attribute__((__unused__)),
 
17192
void free_underlaid_joins(THD *thd __attribute__((unused)),
17193
17193
                          SELECT_LEX *select)
17194
17194
{
17195
17195
  for (SELECT_LEX_UNIT *unit= select->first_inner_unit();
18218
18218
static void print_join(THD *thd,
18219
18219
                       String *str,
18220
18220
                       List<TABLE_LIST> *tables,
18221
 
                       enum_query_type query_type __attribute__((__unused__)))
 
18221
                       enum_query_type query_type __attribute__((unused)))
18222
18222
{
18223
18223
  /* List is reversed => we should reverse it before using */
18224
18224
  List_iterator_fast<TABLE_LIST> ti(*tables);