ClickHouse/dbms/tests/queries/0_stateless/00972_live_view_select_1.sql
Vitaliy Zakaznikov 5079180595 * Fixing a bug in LIVE VIEW tables. Before when a table
is created with "AS SELECT 1" the SELECT and WATCH queries would fail
* Adding and updating LIVE VIEW tests to increase coverage
2019-06-08 09:26:02 -04:00

6 lines
134 B
SQL

DROP TABLE IF EXISTS test.lv;
CREATE LIVE VIEW test.lv AS SELECT 1;
SHOW TABLES LIKE 'lv';
SELECT * FROM test.lv;
DROP TABLE test.lv;