~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/divide.h

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
28
28
 
29
29
class Item_func_div :public Item_num_op
30
30
{
 
31
  Session *session;
31
32
public:
32
33
  uint32_t prec_increment;
33
 
  Item_func_div(Item *a,Item *b) :Item_num_op(a,b) {}
 
34
  Item_func_div(Session *arg, Item *a,Item *b) :Item_num_op(a,b), session(arg) {}
34
35
  int64_t int_op() { assert(0); return 0; }
35
36
  double real_op();
36
 
  my_decimal *decimal_op(my_decimal *);
 
37
  type::Decimal *decimal_op(type::Decimal *);
37
38
  const char *func_name() const { return "/"; }
38
39
  void fix_length_and_dec();
39
40
  void result_precision();