diff options
author | unknown <ramil@mysql.com> | 2005-11-06 12:35:49 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-11-06 12:35:49 +0400 |
commit | d1a8ccc12767d31b4353311f71edb14b8a4240d1 (patch) | |
tree | 53d260c825548593c1fdd773653a936d61fe83e8 /mysql-test/r/func_op.result | |
parent | fb4c949f57b281a232ea581e26b8c48be6c1d873 (diff) | |
download | mariadb-git-d1a8ccc12767d31b4353311f71edb14b8a4240d1.tar.gz |
Fix for bug #13044: BIT_COUNT with NULL values.
sql/item_func.cc:
Fix for bug #13044: BIT_COUNT with NULL values.
Always set null_value.
Diffstat (limited to 'mysql-test/r/func_op.result')
-rw-r--r-- | mysql-test/r/func_op.result | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/func_op.result b/mysql-test/r/func_op.result index d009a66353e..486c55870c2 100644 --- a/mysql-test/r/func_op.result +++ b/mysql-test/r/func_op.result @@ -25,3 +25,14 @@ select -1 >> 0, -1 << 0; select -1 >> 1, -1 << 1; -1 >> 1 -1 << 1 9223372036854775807 18446744073709551614 +drop table if exists t1,t2; +create table t1(a int); +create table t2(a int, b int); +insert into t1 values (1), (2), (3); +insert into t2 values (1, 7), (3, 7); +select t1.a, t2.a, t2.b, bit_count(t2.b) from t1 left join t2 on t1.a=t2.a; +a a b bit_count(t2.b) +1 1 7 3 +2 NULL NULL NULL +3 3 7 3 +drop table t1, t2; |