~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/year.h

  • Committer: Toru Maesaka
  • Date: 2009-05-18 06:07:03 UTC
  • mto: (1054.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1056.
  • Revision ID: dev@torum.net-20090518060703-5d2f2luyqaho10yq
Add memory allocation check and fix SEGV problem caused in statement_cleanup() by using calloc. This is temporary, the query statement list should be migrated to a proper container like std::vector

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <drizzled/function/math/int.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
class Item_func_year :public Item_int_func
29
26
{
30
27
public:
40
37
  }
41
38
};
42
39
 
43
 
} /* namespace drizzled */
44
 
 
45
40
#endif /* DRIZZLED_FUNCTION_TIME_YEAR_H */