~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Patrick Galbraith
  • Date: 2009-10-08 22:42:05 UTC
  • mto: (1166.5.3 memcached_functions)
  • mto: This revision was merged to the branch mainline in revision 1189.
  • Revision ID: patg@patrick-galbraiths-macbook-pro.local-20091008224205-gq1pehjsivvx0qo9
Starting over with a fresh tree, moved in memcached functions.

Memcached Functions for Drizzle. 

All tests pass.

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 */