~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.cc

  • Committer: Stewart Smith
  • Date: 2011-03-29 01:30:47 UTC
  • mto: (2257.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: stewart@flamingspork.com-20110329013047-5ujzfx6pahmwuko2
have CachedDirectory print out a warning if we can't stat() something in a directory. We should always have access to at least stat() things in directories Drizzle is running in (otherwise there is likely a problem)

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/item/cache_int.h>
23
23
 
47
47
  return str;
48
48
}
49
49
 
50
 
my_decimal *Item_cache_int::val_decimal(my_decimal *decimal_val)
 
50
type::Decimal *Item_cache_int::val_decimal(type::Decimal *decimal_val)
51
51
{
52
52
  assert(fixed == 1);
53
 
  int2my_decimal(E_DEC_FATAL_ERROR, value, unsigned_flag, decimal_val);
 
53
  int2_class_decimal(E_DEC_FATAL_ERROR, value, unsigned_flag, decimal_val);
54
54
  return decimal_val;
55
55
}
56
56