ClickHouse/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql
Marek Vavruša d27bed228b Parser: fix CREATE VIEW IF EXISTS #934
The else branch forgot to consume whitespace after
CREATE token, and after VIEW token.
2017-07-03 17:01:43 +03:00

10 lines
243 B
SQL

DROP TABLE IF EXISTS test.t;
DROP TABLE IF EXISTS test.mv;
DROP TABLE IF EXISTS test.`.inner.mv`;
CREATE TABLE test.t (x UInt8) ENGINE = Null;
CREATE VIEW IF NOT EXISTS test.mv AS SELECT * FROM test.t;
DROP TABLE test.t;
DROP TABLE test.mv;