summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_op.test
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2006-04-11 10:46:21 +0500
committerunknown <ramil@mysql.com>2006-04-11 10:46:21 +0500
commitd943c58761e13c8fdad2a227024760a364d070dc (patch)
tree7b8a2ded6ae0f11f5b505b9663849334a85e0ddd /mysql-test/t/func_op.test
parent747f81c22c3099860ed0babe1993083d3c827013 (diff)
parentd1a8ccc12767d31b4353311f71edb14b8a4240d1 (diff)
downloadmariadb-git-d943c58761e13c8fdad2a227024760a364d070dc.tar.gz
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/usr/home/ram/work/mysql-4.0
Diffstat (limited to 'mysql-test/t/func_op.test')
-rw-r--r--mysql-test/t/func_op.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/func_op.test b/mysql-test/t/func_op.test
index a312d6ac8c0..ab96caaff82 100644
--- a/mysql-test/t/func_op.test
+++ b/mysql-test/t/func_op.test
@@ -14,3 +14,15 @@ select 1 | -1, 1 ^ -1, 1 & -1;
select 0 | -1, 0 ^ -1, 0 & -1;
select -1 >> 0, -1 << 0;
select -1 >> 1, -1 << 1;
+
+#
+# Bug 13044: wrong bit_count() results
+#
+
+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;
+drop table t1, t2;