diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2015-04-21 08:32:31 +0200 |
---|---|---|
committer | holyfoot <holyfoot@mariadb.com> | 2017-03-06 23:36:48 +0400 |
commit | e823023e4bb48b0db9ee91477076fc20db704769 (patch) | |
tree | 0aa377acc805abb0e117ff7c75d0bba7af465502 /client/mysqltest.cc | |
parent | 68d632bc5a1437282dde5460b7a0d3d887fd5483 (diff) | |
download | mariadb-git-e823023e4bb48b0db9ee91477076fc20db704769.tar.gz |
Bug#18411494 WRONG COMPARSION ON BIG DECIMAL VALUES
Problem: integer literals may be converted to floats for
comparison with decimal data. If the integers are large,
we may lose precision, and give wrong results.
Fix: for
<non-const decimal expression> <cmp> <const string expression>
or
<const string expression> <cmp> <non-const decimal expression>
we override the compare_type chosen by item_cmp_type(), and
do comparison as decimal rather than float.
(cherry picked from commit https://github.com/mysql/mysql-server/commit/1cf3489ba42df1f29c1f3e269443254087505166 and edited by Johannes Weißl <jargon@molb.org>)
Diffstat (limited to 'client/mysqltest.cc')
0 files changed, 0 insertions, 0 deletions