~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/min_max.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

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"
21
 
 
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
22
22
#include <drizzled/function/min_max.h>
23
23
#include <drizzled/item/cmpfunc.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
void Item_func_min_max::fix_length_and_dec()
29
26
{
30
27
  int max_int_part=0;
146
143
  {
147
144
    double nr= val_real();
148
145
    if (null_value)
149
 
      return 0;
 
146
      return 0; /* purecov: inspected */
150
147
    str->set_real(nr,decimals,&my_charset_bin);
151
148
    return str;
152
149
  }
279
276
  return res;
280
277
}
281
278
 
282
 
} /* namespace drizzled */