~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2009-02-08 03:02:04 UTC
  • Revision ID: brian@tangent.org-20090208030204-3gz6xwcq5niux5nm
Class rewrite of Session (aka get all of the junk out)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3708
3708
#define RATIO_TO_PACK_ROWS             2
3709
3709
 
3710
3710
Table *
3711
 
create_tmp_table(Session *session,TMP_TABLE_PARAM *param,List<Item> &fields,
 
3711
create_tmp_table(Session *session,Tmp_Table_Param *param,List<Item> &fields,
3712
3712
                 order_st *group, bool distinct, bool save_sum_fields,
3713
3713
                 uint64_t select_options, ha_rows rows_limit,
3714
3714
                 char *table_alias)
3790
3790
    When loose index scan is employed as access method, it already
3791
3791
    computes all groups and the result of all aggregate functions. We
3792
3792
    make space for the items of the aggregate function in the list of
3793
 
    functions TMP_TABLE_PARAM::items_to_copy, so that the values of
 
3793
    functions Tmp_Table_Param::items_to_copy, so that the values of
3794
3794
    these items are stored in the temporary table.
3795
3795
  */
3796
3796
  if (param->precomputed_group_by)
3821
3821
      bitmap_lock_clear_bit(&temp_pool, temp_pool_slot);
3822
3822
    return(NULL);                               /* purecov: inspected */
3823
3823
  }
3824
 
  /* Copy_field belongs to TMP_TABLE_PARAM, allocate it in Session mem_root */
 
3824
  /* Copy_field belongs to Tmp_Table_Param, allocate it in Session mem_root */
3825
3825
  if (!(param->copy_field= copy= new (session->mem_root) Copy_field[field_count]))
3826
3826
  {
3827
3827
    if (temp_pool_slot != MY_BIT_NONE)