~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/decimal.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 13:16:34 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705131634-f7g1fjro5slibmdj
Add data_ref.h
Use str_ref for append_identifier

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>
 
22
#include <drizzled/charset.h>
23
23
#include <drizzled/field.h>
24
24
#include <drizzled/item/decimal.h>
25
25
 
26
 
namespace drizzled
27
 
{
 
26
namespace drizzled {
28
27
 
29
28
Item_decimal::Item_decimal(const char *str_arg, uint32_t length,
30
 
                           const CHARSET_INFO * const charset)
 
29
                           const charset_info_st * const charset)
31
30
{
32
31
  decimal_value.store(E_DEC_FATAL_ERROR, str_arg, length, charset);
33
32
  name= (char*) str_arg;
108
107
  return result;
109
108
}
110
109
 
111
 
void Item_decimal::print(String *str, enum_query_type)
 
110
void Item_decimal::print(String *str)
112
111
{
113
112
  class_decimal2string(&decimal_value, 0, &str_value);
114
113
  str->append(str_value);