~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_row.cc

few updates and modifications to admin commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
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
 
type::Decimal *Item_cache_row::val_decimal(type::Decimal *)
 
58
my_decimal *Item_cache_row::val_decimal(my_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;
92
93
  return (!(values=
93
 
            (Item_cache **) getSession().calloc(sizeof(Item_cache *)*item_count)));
 
94
            (Item_cache **) session->calloc(sizeof(Item_cache *)*item_count)));
94
95
}
95
96
 
96
97