diff options
author | petr@mysql.com <> | 2005-09-14 07:25:32 +0400 |
---|---|---|
committer | petr@mysql.com <> | 2005-09-14 07:25:32 +0400 |
commit | e8946265fca8220c6219b8a91b0b1556d9a4a1d4 (patch) | |
tree | d29d37492a2b7187f8a2ce6a765c45f2625b44e6 /sql | |
parent | ddc6bd891835daae1bae97a175714852ac8371dc (diff) | |
download | mariadb-git-e8946265fca8220c6219b8a91b0b1556d9a4a1d4.tar.gz |
fix for Bug #12979 Stored procedures: crash if inout decimal parameter
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_func.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index b47d7d19fbd..518fb011e0f 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -765,7 +765,7 @@ my_decimal *Item_func_numhybrid::val_decimal(my_decimal *decimal_value) } case REAL_RESULT: { - double result= (double)int_op(); + double result= (double)real_op(); double2my_decimal(E_DEC_FATAL_ERROR, result, decimal_value); break; } |