~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.cc

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
merge lp:~olafvdspek/drizzle/refactor4

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/ref.h>
23
23
#include <drizzled/item/ref_null_helper.h>
24
24
#include <drizzled/item/subselect.h>
25
25
#include <drizzled/lex_string.h>
26
26
 
27
 
namespace drizzled
28
 
{
 
27
namespace drizzled {
29
28
 
30
29
double Item_ref_null_helper::val_real()
31
30
{
75
74
  return (owner->was_null|= null_value= (*ref)->get_date(ltime, fuzzydate));
76
75
}
77
76
 
78
 
void Item_ref_null_helper::print(String *str, enum_query_type query_type)
 
77
void Item_ref_null_helper::print(String *str)
79
78
{
80
79
  str->append(STRING_WITH_LEN("<ref_null_helper>("));
81
80
  if (ref)
82
 
    (*ref)->print(str, query_type);
 
81
    (*ref)->print(str);
83
82
  else
84
83
    str->append('?');
85
84
  str->append(')');