~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_subselect.cc

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
}
148
148
 
149
149
Item_subselect::trans_res
150
 
Item_subselect::select_transformer(JOIN *join __attribute__((__unused__)))
 
150
Item_subselect::select_transformer(JOIN *join __attribute__((unused)))
151
151
{
152
152
  return(RES_OK);
153
153
}
156
156
bool Item_subselect::fix_fields(THD *thd_param, Item **ref)
157
157
{
158
158
  char const *save_where= thd_param->where;
159
 
  uint8 uncacheable;
 
159
  uint8_t uncacheable;
160
160
  bool res;
161
161
 
162
162
  assert(fixed == 0);
740
740
   max_length= 1;
741
741
   max_columns= engine->cols();
742
742
  /* We need only 1 row to determine existence */
743
 
  unit->global_parameters->select_limit= new Item_int((int32) 1);
 
743
  unit->global_parameters->select_limit= new Item_int((int32_t) 1);
744
744
}
745
745
 
746
746
double Item_exists_subselect::val_real()
1857
1857
  @retval false otherwise
1858
1858
*/
1859
1859
 
1860
 
bool Item_in_subselect::is_expensive_processor(uchar *arg __attribute__((__unused__)))
 
1860
bool Item_in_subselect::is_expensive_processor(uchar *arg __attribute__((unused)))
1861
1861
{
1862
1862
  return exec_method == MATERIALIZATION;
1863
1863
}
2067
2067
  Item *sel_item;
2068
2068
  List_iterator_fast<Item> li(item_list);
2069
2069
  res_type= STRING_RESULT;
2070
 
  res_field_type= MYSQL_TYPE_STRING;
 
2070
  res_field_type= DRIZZLE_TYPE_STRING;
2071
2071
  for (uint i= 0; (sel_item= li++); i++)
2072
2072
  {
2073
2073
    item->max_length= sel_item->max_length;
2110
2110
  }
2111
2111
}
2112
2112
 
2113
 
void subselect_uniquesubquery_engine::fix_length_and_dec(Item_cache **row __attribute__((__unused__)))
 
2113
void subselect_uniquesubquery_engine::fix_length_and_dec(Item_cache **row __attribute__((unused)))
2114
2114
{
2115
2115
  //this never should be called
2116
2116
  assert(0);
2622
2622
}
2623
2623
 
2624
2624
 
2625
 
uint8 subselect_single_select_engine::uncacheable()
 
2625
uint8_t subselect_single_select_engine::uncacheable()
2626
2626
{
2627
2627
  return select_lex->uncacheable;
2628
2628
}
2629
2629
 
2630
2630
 
2631
 
uint8 subselect_union_engine::uncacheable()
 
2631
uint8_t subselect_union_engine::uncacheable()
2632
2632
{
2633
2633
  return unit->uncacheable;
2634
2634
}
2823
2823
    true  error
2824
2824
*/
2825
2825
 
2826
 
bool subselect_uniquesubquery_engine::change_result(Item_subselect *si __attribute__((__unused__)),
2827
 
                                                    select_result_interceptor *res __attribute__((__unused__)))
 
2826
bool subselect_uniquesubquery_engine::change_result(Item_subselect *si __attribute__((unused)),
 
2827
                                                    select_result_interceptor *res __attribute__((unused)))
2828
2828
{
2829
2829
  assert(0);
2830
2830
  return true;