~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Brian Aker
  • Date: 2010-12-24 07:53:15 UTC
  • mfrom: (2024.1.3 clean)
  • Revision ID: brian@tangent.org-20101224075315-qiwlw4rc1bwx1p2m
MergeĀ inĀ CAST.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
#include <drizzled/function/math/tan.h>
84
84
#include <drizzled/function/units.h>
85
85
 
 
86
#include "drizzled/function/cast/signed.h"
86
87
#include "drizzled/function/cast/time.h"
 
88
#include "drizzled/function/cast/unsigned.h"
87
89
 
88
90
using namespace std;
89
91
 
2090
2092
  uint32_t dec;
2091
2093
 
2092
2094
  switch (cast_type) {
 
2095
  case ITEM_CAST_SIGNED:
 
2096
    res= new (session->mem_root) function::cast::Signed(a);
 
2097
    break;
 
2098
 
 
2099
  case ITEM_CAST_UNSIGNED:
 
2100
    res= new (session->mem_root) function::cast::Unsigned(a);
 
2101
    break;
 
2102
 
2093
2103
  case ITEM_CAST_BINARY:
2094
2104
    res= new (session->mem_root) Item_func_binary(a);
2095
2105
    break;