~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/numhybrid.cc

  • Committer: Brian Aker
  • Date: 2009-01-24 09:43:35 UTC
  • Revision ID: brian@gir-3.local-20090124094335-6qdtvc35gl5fvivz
Adding in an example singe thread scheduler

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>
 
20
#include <drizzled/server_includes.h>
 
21
 
 
22
#include CSTDINT_H
 
23
#include <cassert>
 
24
 
22
25
#include <drizzled/function/numhybrid.h>
 
26
#include CMATH_H
23
27
 
24
 
namespace drizzled
25
 
{
 
28
#if defined(CMATH_NAMESPACE)
 
29
using namespace CMATH_NAMESPACE;
 
30
#endif
26
31
 
27
32
void Item_func_numhybrid::fix_num_length_and_dec()
28
33
{}
50
55
  {
51
56
    int64_t nr= int_op();
52
57
    if (null_value)
53
 
      return 0;
 
58
      return 0; /* purecov: inspected */
54
59
    str->set_int(nr, unsigned_flag, &my_charset_bin);
55
60
    break;
56
61
  }
58
63
  {
59
64
    double nr= real_op();
60
65
    if (null_value)
61
 
      return 0;
 
66
      return 0; /* purecov: inspected */
62
67
    str->set_real(nr,decimals,&my_charset_bin);
63
68
    break;
64
69
  }
177
182
  }
178
183
  return val;
179
184
}
180
 
 
181
 
} /* namespace drizzled */