~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_decimal.h

  • Committer: Monty Taylor
  • Date: 2008-11-17 07:23:53 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081117072353-tc8ykdsycno0cc5u
Split out a little more code. Removed table_list.h from common_includes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#include <mystrings/decimal.h>
40
40
#include <mysys/my_time.h>
 
41
#include <drizzled/sql_string.h>
41
42
 
42
43
#ifdef __cplusplus
43
44
}
237
238
                     bool truncate, my_decimal *to)
238
239
{
239
240
  return check_result(mask, decimal_round((decimal_t*) from, to, scale,
240
 
                                          (truncate ? TRUNCATE : HALF_UP)));
 
241
                                          (truncate ? TRUNCATE : HALF_UP)));
241
242
}
242
243
 
243
244
 
256
257
 
257
258
 
258
259
int my_decimal2string(uint32_t mask, const my_decimal *d, uint32_t fixed_prec,
259
 
                      uint32_t fixed_dec, char filler, String *str);
 
260
                      uint32_t fixed_dec, char filler, String *str);
260
261
 
261
262
inline
262
263
int my_decimal2int(uint32_t mask, const my_decimal *d, bool unsigned_flag,
263
 
                   int64_t *l)
 
264
                   int64_t *l)
264
265
{
265
266
  my_decimal rounded;
266
267
  /* decimal_round can return only E_DEC_TRUNCATED */