~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.cc

  • Committer: Brian Aker
  • Date: 2010-12-27 20:04:50 UTC
  • mto: (2060.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2063.
  • Revision ID: brian@tangent.org-20101227200450-dmxpemwyfmlinlnm
Merge in first 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 "config.h"
22
21
#include <drizzled/item/ref.h>
23
22
#include <drizzled/item/ref_null_helper.h>
24
23
#include <drizzled/item/subselect.h>
25
 
#include <drizzled/lex_string.h>
26
24
 
27
25
namespace drizzled
28
26
{
45
43
}
46
44
 
47
45
 
48
 
type::Decimal *Item_ref_null_helper::val_decimal(type::Decimal *decimal_value)
 
46
my_decimal *Item_ref_null_helper::val_decimal(my_decimal *decimal_value)
49
47
{
50
48
  assert(fixed == 1);
51
 
  type::Decimal *val= (*ref)->val_decimal_result(decimal_value);
 
49
  my_decimal *val= (*ref)->val_decimal_result(decimal_value);
52
50
  owner->was_null|= null_value= (*ref)->null_value;
53
51
  return val;
54
52
}
70
68
  return tmp;
71
69
}
72
70
 
73
 
bool Item_ref_null_helper::get_date(type::Time &ltime, uint32_t fuzzydate)
 
71
bool Item_ref_null_helper::get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate)
74
72
{
75
73
  return (owner->was_null|= null_value= (*ref)->get_date(ltime, fuzzydate));
76
74
}