~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/direct_ref.cc

Merge Stewart's dead code removal

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