1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug #31471: decimal_bin_size: Assertion `scale >= 0 &&

precision > 0 && scale <= precision'.

A sign of a resulting item of the IFNULL function was not
updated and the maximal length of this result was calculated
improperly. Correct algorithm was copy&pasted from the IF
function implementation.
This commit is contained in:
gshchepa/uchum@gleb.loc
2007-10-10 20:14:29 +05:00
parent 20ec6605d3
commit 356007a8a4
4 changed files with 64 additions and 8 deletions

View File

@ -425,7 +425,7 @@ explain t2;
Field Type Null Key Default Extra
a int(11) YES NULL
b bigint(11) NO 0
c bigint(11) NO 0
c bigint(11) unsigned NO 0
d date YES NULL
e varchar(1) NO
f datetime YES NULL