~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.cc

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
18
18
 */
19
19
 
20
20
#include "config.h"
 
21
 
21
22
#include <drizzled/item/ref.h>
22
23
#include <drizzled/item/ref_null_helper.h>
23
24
#include <drizzled/item/subselect.h>
 
25
#include <drizzled/lex_string.h>
24
26
 
25
27
namespace drizzled
26
28
{
43
45
}
44
46
 
45
47
 
46
 
my_decimal *Item_ref_null_helper::val_decimal(my_decimal *decimal_value)
 
48
type::Decimal *Item_ref_null_helper::val_decimal(type::Decimal *decimal_value)
47
49
{
48
50
  assert(fixed == 1);
49
 
  my_decimal *val= (*ref)->val_decimal_result(decimal_value);
 
51
  type::Decimal *val= (*ref)->val_decimal_result(decimal_value);
50
52
  owner->was_null|= null_value= (*ref)->null_value;
51
53
  return val;
52
54
}
68
70
  return tmp;
69
71
}
70
72
 
71
 
bool Item_ref_null_helper::get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate)
 
73
bool Item_ref_null_helper::get_date(type::Time &ltime, uint32_t fuzzydate)
72
74
{
73
75
  return (owner->was_null|= null_value= (*ref)->get_date(ltime, fuzzydate));
74
76
}