~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_row.cc

edit

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>
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