summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorgkodinov@mysql.com <>2006-05-25 10:39:18 +0300
committergkodinov@mysql.com <>2006-05-25 10:39:18 +0300
commitd6b5a8904457c9d0678ca62087e575e7162a079f (patch)
treefca1eea3498e6afeb23f9850c96a66089566b74f /sql/item_subselect.cc
parent474ef8ed43c5f87da6a3c85e9cbc3e8fc18b47d0 (diff)
downloadmariadb-git-d6b5a8904457c9d0678ca62087e575e7162a079f.tar.gz
Bug #19700: subselect returning BIGINT always returned it as SIGNED
The unsigned flag in Item was not propagated through the single value subqueries. This caused the result to be treated as signed.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 87ef0fc080e..dda1b46ab10 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -404,6 +404,7 @@ void Item_singlerow_subselect::fix_length_and_dec()
engine->fix_length_and_dec(row);
value= *row;
}
+ unsigned_flag= value->unsigned_flag;
/*
If there are not tables in subquery then ability to have NULL value
depends on SELECT list (if single row subquery have tables then it