summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_op.result
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2006-04-13 15:07:50 +0300
committerbell@sanja.is.com.ua <>2006-04-13 15:07:50 +0300
commitcb81389aef255b606cb262226d2721346ef567e2 (patch)
treed096b4ad76ab8747e5598eb10f6c70cc55978bd0 /mysql-test/r/func_op.result
parent34b2ed5f7f7889eb5f05c5bc8057bf8ae69aa796 (diff)
parentb4980d43830040ae950e36d7dc71398bf613a575 (diff)
downloadmariadb-git-cb81389aef255b606cb262226d2721346ef567e2.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-5.0
Diffstat (limited to 'mysql-test/r/func_op.result')
-rw-r--r--mysql-test/r/func_op.result11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/func_op.result b/mysql-test/r/func_op.result
index 61b29e9380d..24685d07f3d 100644
--- a/mysql-test/r/func_op.result
+++ b/mysql-test/r/func_op.result
@@ -35,3 +35,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;