diff options
author | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:13:06 +0500 |
---|---|---|
committer | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-05-11 18:13:06 +0500 |
commit | 069314eaf36e8a6ab92d9eebae5d75b56d1e84b9 (patch) | |
tree | b8c54abe0649f45196d32077f74dd9ff1d2ad872 /sql/item_func.h | |
parent | 8df08a2de2a50757812daf4b51333b4c0b82c4dd (diff) | |
parent | d535add0131ae02d09a8f8149c85fdcc4a78a329 (diff) | |
download | mariadb-git-069314eaf36e8a6ab92d9eebae5d75b56d1e84b9.tar.gz |
Merge mysql.com:/home/hf/work/27921/my50-27921
into mysql.com:/home/hf/work/27957/my50-27957
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 0443e394585..7ec3c0b00c4 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -331,8 +331,8 @@ class Item_decimal_typecast :public Item_func public: Item_decimal_typecast(Item *a, int len, int dec) :Item_func(a) { - max_length= len + 2; decimals= dec; + max_length= my_decimal_precision_to_length(len, dec, unsigned_flag); } String *val_str(String *str); double val_real(); |