diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2014-04-24 16:59:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2014-04-24 16:59:01 +0400 |
commit | d3d3a4b834db8efc558b71066870b07efe1f2976 (patch) | |
tree | efdfd231e9eb08d5a1728a2989b137d46a93f496 /sql/item_timefunc.cc | |
parent | aefddfe3ff3a8502e761871647cc38ec7bf09d62 (diff) | |
download | mariadb-git-d3d3a4b834db8efc558b71066870b07efe1f2976.tar.gz |
MDEV-4511 Assertion `scale <= precision' fails on GROUP BY TIMEDIFF with incorrect types
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 4d261e7a7d9..f2f5b7b1b63 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -3144,7 +3144,7 @@ void Item_func_str_to_date::fix_length_and_dec() } cached_field_type= MYSQL_TYPE_DATETIME; - decimals= NOT_FIXED_DEC; + decimals= TIME_SECOND_PART_DIGITS; if ((const_item= args[1]->const_item())) { char format_buff[64]; |