~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.h

  • 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
 
#ifndef DRIZZLED_ITEM_CACHE_INT_H
21
 
#define DRIZZLED_ITEM_CACHE_INT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/item/cache.h>
24
23
 
39
38
  double val_real() { assert(fixed == 1); return (double) value; }
40
39
  int64_t val_int() { assert(fixed == 1); return value; }
41
40
  String* val_str(String *str);
42
 
  my_decimal *val_decimal(my_decimal *);
 
41
  type::Decimal *val_decimal(type::Decimal *);
43
42
  enum Item_result result_type() const { return INT_RESULT; }
44
43
  bool result_as_int64_t() { return true; }
45
44
};
46
45
 
47
46
} /* namespace drizzled */
48
47
 
49
 
#endif /* DRIZZLED_ITEM_CACHE_INT_H */