~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/ln.cc

  • 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:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
21
 
#include <math.h>
22
 
#include "ln.h"
23
 
 
24
 
namespace drizzled
25
 
{
 
20
#include <drizzled/server_includes.h>
 
21
#include <drizzled/function/math/ln.h>
26
22
 
27
23
/** Gateway to natural LOG function. */
28
24
double Item_func_ln::val_real()
39
35
  return log(value);
40
36
}
41
37
 
42
 
} /* namespace drizzled */