~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/int.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"
 
20
#include <drizzled/server_includes.h>
21
21
 
 
22
#include CSTDINT_H
22
23
#include <cassert>
23
24
 
24
25
#include <drizzled/sql_string.h>
25
26
#include <drizzled/function/math/int.h>
26
27
 
27
 
namespace drizzled
28
 
{
29
 
 
30
 
Item_int_func::~Item_int_func() {}
31
 
 
32
28
double Item_int_func::val_real()
33
29
{
34
30
  assert(fixed == 1);
46
42
  str->set_int(nr, unsigned_flag, &my_charset_bin);
47
43
  return str;
48
44
}
49
 
 
50
 
} /* namespace drizzled */