~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-11-18 22:58:22 UTC
  • mto: (1223.1.1 push) (1226.1.2 push)
  • mto: This revision was merged to the branch mainline in revision 1224.
  • Revision ID: brian@gaz-20091118225822-4ryr9rviir23o0kr
Second pass through bugs related to CREATE TABLE LIKE

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
 
 
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
22
22
#include <drizzled/function/math/divide.h>
23
23
#include <drizzled/session.h>
24
24
 
26
26
 
27
27
using namespace std;
28
28
 
29
 
namespace drizzled
30
 
{
31
 
 
32
29
double Item_func_div::real_op()
33
30
{
34
31
  assert(fixed == 1);
87
84
 
88
85
void Item_func_div::fix_length_and_dec()
89
86
{
90
 
  prec_increment= session->variables.div_precincrement;
 
87
  prec_increment= current_session->variables.div_precincrement;
91
88
  Item_num_op::fix_length_and_dec();
92
89
 
93
90
  switch(hybrid_type)
115
112
  return;
116
113
}
117
114
 
118
 
} /* namespace drizzled */