~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 20:05:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622200558-oq3jb987di9yj70r
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
3203
3203
    assertion here when this is fixed.
3204
3204
  */
3205
3205
  if (table || tree)
3206
 
    return(false);
 
3206
    return false;
3207
3207
 
3208
3208
  if (!(tmp_table_param= new Tmp_Table_Param))
3209
 
    return(true);
 
3209
    return true;
3210
3210
 
3211
3211
  /* We'll convert all blobs to varchar fields in the temporary table */
3212
3212
  tmp_table_param->convert_blob_length= max_length *
3222
3222
      if (item->is_null())
3223
3223
      {
3224
3224
        always_null= 1;
3225
 
        return(false);
 
3225
        return false;
3226
3226
      }
3227
3227
    }
3228
3228
  }
3236
3236
  */
3237
3237
  if (arg_count_order &&
3238
3238
      setup_order(session, args, context->table_list, list, all_fields, *order))
3239
 
    return(true);
 
3239
    return true;
3240
3240
 
3241
3241
  count_field_types(select_lex, tmp_table_param, all_fields, 0);
3242
3242
  tmp_table_param->force_copy_fields= force_copy_fields;
3265
3265
                                (select_lex->options | session->options),
3266
3266
                                HA_POS_ERROR, (char*) "")))
3267
3267
  {
3268
 
    return(true);
 
3268
    return true;
3269
3269
  }
3270
3270
 
3271
3271
  table->cursor->extra(HA_EXTRA_NO_ROWS);
3299
3299
                              tree_key_length,
3300
3300
                              (size_t)session->variables.max_heap_table_size);
3301
3301
 
3302
 
  return(false);
 
3302
  return false;
3303
3303
}
3304
3304
 
3305
3305