~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_row.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
22
22
#include <drizzled/error.h>
23
23
#include <drizzled/table.h>
55
55
}
56
56
 
57
57
 
58
 
my_decimal *Item_cache_row::val_decimal(my_decimal *)
 
58
type::Decimal *Item_cache_row::val_decimal(type::Decimal *)
59
59
{
60
60
  illegal_method_call((const char*)"val_decimal");
61
61
  return 0;
89
89
bool Item_cache_row::allocate(uint32_t num)
90
90
{
91
91
  item_count= num;
92
 
  Session *session= current_session;
93
92
  return (!(values=
94
 
            (Item_cache **) session->calloc(sizeof(Item_cache *)*item_count)));
 
93
            (Item_cache **) getSession().calloc(sizeof(Item_cache *)*item_count)));
95
94
}
96
95
 
97
96