~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_row.cc

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

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