summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 846d99a29d2..25a3ecb519f 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -208,9 +208,14 @@ public:
void fix_length_and_dec() {}
Field *tmp_table_field(TABLE *t_arg)
{
- if (!t_arg) return result_field;
- return (max_length > 11) ? (Field *)new Field_longlong(max_length,maybe_null,name, t_arg,unsigned_flag) : (Field *)new Field_long(max_length,maybe_null,name, t_arg,unsigned_flag);
- }
+ if (!t_arg)
+ return result_field;
+ return ((max_length > 11) ?
+ (Field *)new Field_longlong(max_length, maybe_null, name, t_arg,
+ unsigned_flag) :
+ (Field *)new Field_long(max_length, maybe_null, name, t_arg,
+ unsigned_flag));
+ }
};
class Item_func_signed :public Item_int_func