ClickHouse/tests/queries/0_stateless/02003_bug_from_23515.sql

11 lines
403 B
MySQL
Raw Normal View History

2021-08-06 13:39:11 +00:00
drop table if exists tab;
create table tab (a LowCardinality(String), b LowCardinality(String)) engine = MergeTree partition by a order by tuple() settings min_bytes_for_wide_part = 0, min_rows_for_wide_part = 0;
insert into tab values ('1', 'a'), ('2', 'b');
SELECT a = '1' FROM tab WHERE a = '1' and b='a';
2021-08-09 12:19:28 +00:00
-- Fuzzed
SELECT * FROM tab WHERE (a = '1') AND 0 AND (b = 'a');
2021-08-06 13:39:11 +00:00
drop table if exists tab;