~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/pow.cc

  • Committer: Monty Taylor
  • Date: 2008-10-23 00:05:28 UTC
  • Revision ID: monty@inaugust.com-20081023000528-grdvrd8c4058nutm
Moved my_handler to myisam, which is where it actually belongs.

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 "pow.h"
23
 
 
24
 
namespace drizzled
25
 
{
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
 
22
#include <drizzled/functions/pow.h>
26
23
 
27
24
double Item_func_pow::val_real()
28
25
{
30
27
  double value= args[0]->val_real();
31
28
  double val2= args[1]->val_real();
32
29
  if ((null_value=(args[0]->null_value || args[1]->null_value)))
33
 
    return 0.0;
 
30
    return 0.0; /* purecov: inspected */
34
31
  return fix_result(pow(value,val2));
35
32
}
36
33
 
37
 
} /* namespace drizzled */