From c666e2f276b897d7f0bec3921243d8c0eb3d3a99 Mon Sep 17 00:00:00 2001 From: "anozdrin/alik@booka.opbmk" <> Date: Fri, 9 Mar 2007 08:05:08 +0300 Subject: Polishing: use constants instead of magic numbers. --- sql/item.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index 833bebdee7e..39cdb68fa00 100644 --- a/sql/item.h +++ b/sql/item.h @@ -1494,11 +1494,14 @@ class Item_int :public Item_num { public: longlong value; - Item_int(int32 i,uint length=11) :value((longlong) i) + Item_int(int32 i,uint length= MY_INT32_NUM_DECIMAL_DIGITS) + :value((longlong) i) { max_length=length; fixed= 1; } - Item_int(longlong i,uint length=21) :value(i) + Item_int(longlong i,uint length= MY_INT64_NUM_DECIMAL_DIGITS) + :value(i) { max_length=length; fixed= 1; } - Item_int(ulonglong i, uint length= 21) :value((longlong)i) + Item_int(ulonglong i, uint length= MY_INT64_NUM_DECIMAL_DIGITS) + :value((longlong)i) { max_length=length; fixed= 1; unsigned_flag= 1; } Item_int(const char *str_arg,longlong i,uint length) :value(i) { max_length=length; name=(char*) str_arg; fixed= 1; } -- cgit v1.2.1