summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorhf@deer.(none) <>2005-03-07 20:53:51 +0400
committerhf@deer.(none) <>2005-03-07 20:53:51 +0400
commitfbbb58c6aeaab9ac5983f5fc57204e0e74b5b954 (patch)
tree93b78a95b8ba743ba7f9069cfb83219382d5cfc3 /sql/field.cc
parente5a2d037437cc92966b2d593bc7a9bef1d3c7e94 (diff)
downloadmariadb-git-fbbb58c6aeaab9ac5983f5fc57204e0e74b5b954.tar.gz
Fix for bug #8935 CAST(time AS DECIMAL) crashes
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 1538edc59a3..fd4d83a8b1c 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -626,7 +626,6 @@ int Field_str::store_decimal(const my_decimal *d)
my_decimal *Field_str::val_decimal(my_decimal *decimal_value)
{
- DBUG_ASSERT(result_type() == INT_RESULT);
longlong nr= val_int();
int2my_decimal(E_DEC_FATAL_ERROR, nr, 0, decimal_value);
return decimal_value;