~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/direct_ref.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024212354-j32gbc2sbsw0985q
Use str_ref

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 <config.h>
21
21
 
22
22
#include <drizzled/item/direct_ref.h>
23
23
 
24
 
namespace drizzled
25
 
{
 
24
namespace drizzled {
26
25
 
27
26
double Item_direct_ref::val_real()
28
27
{
47
46
  return tmp;
48
47
}
49
48
 
50
 
my_decimal *Item_direct_ref::val_decimal(my_decimal *decimal_value)
 
49
type::Decimal *Item_direct_ref::val_decimal(type::Decimal *decimal_value)
51
50
{
52
 
  my_decimal *tmp= (*ref)->val_decimal(decimal_value);
 
51
  type::Decimal *tmp= (*ref)->val_decimal(decimal_value);
53
52
  null_value=(*ref)->null_value;
54
53
  return tmp;
55
54
}
69
68
}
70
69
 
71
70
 
72
 
bool Item_direct_ref::get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate)
 
71
bool Item_direct_ref::get_date(type::Time &ltime, uint32_t fuzzydate)
73
72
{
74
 
  return (null_value=(*ref)->get_date(ltime,fuzzydate));
 
73
  return (null_value=(*ref)->get_date(ltime, fuzzydate));
75
74
}
76
75
 
77
76
} /* namespace drizzled */