Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.26, 10.3.22
-
None
-
linux
Description
To reproduce:
create table bitsbug (s Boolean) engine=heap;
|
select bit_and(s) from bitsbug;
|
+----------------------+
|
| bit_and(s) |
|
+----------------------+
|
| 18446744073709551615 |
|
+----------------------+
|
|
insert into bitsbug values (null);
|
select bit_and(s) from bitsbug;
|
+----------------------+
|
| bit_and(s) |
|
+----------------------+
|
| 18446744073709551615 |
|
+----------------------+
|
|
insert into bitsbug values (0);
|
select bit_and(s) from bitsbug;
|
+------------+
|
| bit_and(s) |
|
+------------+
|
| 0 |
|
+------------+
|