summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-01-22 14:52:23 +0400
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-01-22 14:52:23 +0400
commit39fb7b2423c01b168ca4947307426edb945abfe2 (patch)
tree92f4172628767940174a433e7ba2477e138dae6e /sql-common
parent74eac22e4e1d437191be8b9fc536071382330f2e (diff)
downloadmariadb-git-39fb7b2423c01b168ca4947307426edb945abfe2.tar.gz
Fix for bug #22026: Warning when using IF statement and large unsigned bigint
We use INT_RESULT type if all arguments are of type INT for 'if', 'case', 'coalesce' functions regardless of arguments' unsigned flag, so sometimes we can exceed the INT bounds. mysql-test/r/select.result: Fix for bug #22026: Warning when using IF statement and large unsigned bigint - test result. mysql-test/t/select.test: Fix for bug #22026: Warning when using IF statement and large unsigned bigint - test case. sql/item_cmpfunc.cc: Fix for bug #22026: Warning when using IF statement and large unsigned bigint - take into account unsigned flags aggregating result types: return INT_RESULT only if two items with INT_RESULT type have equal unsigned_flags, otherwise return REAL_RESULT.
Diffstat (limited to 'sql-common')
0 files changed, 0 insertions, 0 deletions