Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE VIEW [IF NOT EXISTS] is broken #934

Closed
vavrusa opened this issue Jun 28, 2017 · 0 comments
Closed

CREATE VIEW [IF NOT EXISTS] is broken #934

vavrusa opened this issue Jun 28, 2017 · 0 comments

Comments

@vavrusa
Copy link
Contributor

vavrusa commented Jun 28, 2017

Between 1.1.54236 and 1.1.54243 the "IF NOT EXISTS" for views stopped working, it works just fine without it though.

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

Returns

DB::Exception: Syntax error: failed at position 26:  test.mv AS SELECT * FROM test.t, expected identifier. 
vavrusa added a commit to vavrusa/ClickHouse that referenced this issue Jun 29, 2017
The else branch forgot to consume whitespace after
CREATE token, and after VIEW token.
alexey-milovidov pushed a commit that referenced this issue Jul 3, 2017
The else branch forgot to consume whitespace after
CREATE token, and after VIEW token.
@vavrusa vavrusa closed this as completed Jul 3, 2017
@ztlpn ztlpn marked this as a duplicate of #1018 Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant