~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/min_max.cc

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

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/function/min_max.h>
23
23
#include <drizzled/item/cmpfunc.h>
24
 
#include <drizzled/session.h>
25
24
 
26
25
namespace drizzled
27
26
{
155
154
      type::Decimal dec_buf, *dec_val= val_decimal(&dec_buf);
156
155
      if (null_value)
157
156
        return 0;
158
 
      class_decimal2string(dec_val, 0, str);
 
157
      class_decimal2string(E_DEC_FATAL_ERROR, dec_val, 0, 0, 0, str);
159
158
      return str;
160
159
    }
161
160