~stewart/drizzle/docs-improvements-1

« back to all changes in this revision

Viewing changes to drizzled/item/ref_null_helper.cc

merged with up to date trunk

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
43
43
}
44
44
 
45
45
 
46
 
my_decimal *Item_ref_null_helper::val_decimal(my_decimal *decimal_value)
 
46
type::Decimal *Item_ref_null_helper::val_decimal(type::Decimal *decimal_value)
47
47
{
48
48
  assert(fixed == 1);
49
 
  my_decimal *val= (*ref)->val_decimal_result(decimal_value);
 
49
  type::Decimal *val= (*ref)->val_decimal_result(decimal_value);
50
50
  owner->was_null|= null_value= (*ref)->null_value;
51
51
  return val;
52
52
}
68
68
  return tmp;
69
69
}
70
70
 
71
 
bool Item_ref_null_helper::get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate)
 
71
bool Item_ref_null_helper::get_date(type::Time *ltime, uint32_t fuzzydate)
72
72
{
73
73
  return (owner->was_null|= null_value= (*ref)->get_date(ltime, fuzzydate));
74
74
}