~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • Committer: Brian Aker
  • Date: 2008-12-15 22:23:14 UTC
  • Revision ID: brian@tangent.org-20081215222314-iurkyw6w9cnx3bm7
Mass cleanup for casting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13350
13350
        make_unireg_sortorder(order, &length, join->sortorder)))
13351
13351
    goto err;                           /* purecov: inspected */
13352
13352
 
13353
 
  table->sort.io_cache=(IO_CACHE*) malloc(sizeof(IO_CACHE));
 
13353
  table->sort.io_cache= new IO_CACHE;
13354
13354
  memset(table->sort.io_cache, 0, sizeof(IO_CACHE));
13355
13355
  table->status=0;                              // May be wrong if quick_select
13356
13356
 
13837
13837
 
13838
13838
  cache->length=length+blobs*sizeof(char*);
13839
13839
  cache->blobs=blobs;
13840
 
  *blob_ptr=0;                                  /* End sequentel */
13841
 
  size=cmax(session->variables.join_buff_size, (uint32_t)cache->length);
 
13840
  *blob_ptr= NULL;                                      /* End sequentel */
 
13841
  size= cmax(session->variables.join_buff_size, (uint32_t)cache->length);
13842
13842
  if (!(cache->buff=(unsigned char*) malloc(size)))
13843
 
    return(1);                          /* Don't use cache */ /* purecov: inspected */
 
13843
    return 1;                           /* Don't use cache */ /* purecov: inspected */
13844
13844
  cache->end=cache->buff+size;
13845
13845
  reset_cache_write(cache);
13846
 
  return(0);
 
13846
  return 0;
13847
13847
}
13848
13848
 
13849
13849