summaryrefslogtreecommitdiff
path: root/mysql-test/r/show_check.result
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-08-15 15:46:21 -0400
committerChad MILLER <chad@mysql.com>2008-08-15 15:46:21 -0400
commit65c3870cfcad08f410a56e4b198b4a5078d04c20 (patch)
tree53f9a18c71b7efec31283b2940d94cf6373801c3 /mysql-test/r/show_check.result
parent0546add33e294f3468226a7a20125c99f67103fe (diff)
downloadmariadb-git-65c3870cfcad08f410a56e4b198b4a5078d04c20.tar.gz
Bug#36270: incorrect calculation result - works in 4.1 but not in 5.0 or 5.1
When the fractional part in a multiplication of DECIMALs overflowed, we truncated the first operand rather than the longest. Now truncating least significant places instead for more precise multiplications. (Queuing at demand of Trudy/Davi.) mysql-test/r/type_newdecimal.result: show that if we need to truncate the scale of an operand, we pick the right one (that is, we discard the least significant decimal places) mysql-test/t/type_newdecimal.test: show that if we need to truncate the scale of an operand, we pick the right one (that is, we discard the least significant decimal places) strings/decimal.c: when needing to disregard fractional parts, pick the least significant ones
Diffstat (limited to 'mysql-test/r/show_check.result')
0 files changed, 0 insertions, 0 deletions