~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/decimal.cc

  • Committer: Brian Aker
  • Date: 2011-01-12 06:45:23 UTC
  • mto: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110112064523-rqhptaqbph22qmj1
RemoveĀ customĀ error.

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
 
#include <drizzled/charset_info.h>
23
 
#include <drizzled/field.h>
24
22
#include <drizzled/item/decimal.h>
25
23
 
26
24
namespace drizzled
104
102
String *Item_decimal::val_str(String *result)
105
103
{
106
104
  result->set_charset(&my_charset_bin);
107
 
  class_decimal2string(&decimal_value, 0, result);
 
105
  class_decimal2string(E_DEC_FATAL_ERROR, &decimal_value, 0, 0, 0, result);
108
106
  return result;
109
107
}
110
108
 
111
109
void Item_decimal::print(String *str, enum_query_type)
112
110
{
113
 
  class_decimal2string(&decimal_value, 0, &str_value);
 
111
  class_decimal2string(E_DEC_FATAL_ERROR, &decimal_value, 0, 0, 0, &str_value);
114
112
  str->append(str_value);
115
113
}
116
114