ClickHouse/tests/queries/0_stateless/00856_no_column_issue_4242.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
370 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
DROP TABLE IF EXISTS t1_00856;
DROP TABLE IF EXISTS t2_00856;
CREATE TABLE t1_00856 (n Int32) ENGINE = Memory;
CREATE TABLE t2_00856 (a Int32, n Int32) ENGINE = Memory;
2019-06-03 17:36:27 +00:00
SELECT count() FROM t1_00856 WHERE if(1, 1, n = 0);
SELECT count(n) FROM t2_00856 WHERE if(1, 1, n = 0);
SELECT count() FROM t2_00856 WHERE if(1, 1, n = 0);
2019-06-03 17:36:27 +00:00
DROP TABLE t1_00856;
DROP TABLE t2_00856;