ClickHouse/tests/queries/0_stateless/02680_default_star.sql
Alexey Milovidov 96b4cccac4 Add a test
2023-03-13 05:39:35 +01:00

7 lines
385 B
SQL

-- These queries yield syntax error, not logical error.
CREATE TEMPORARY TABLE test (ad DEFAULT *); -- { clientError SYNTAX_ERROR }
CREATE TEMPORARY TABLE test (ad INT DEFAULT *); -- { clientError SYNTAX_ERROR }
CREATE TEMPORARY TABLE test (ad DEFAULT * NOT NULL); -- { clientError SYNTAX_ERROR }
CREATE TEMPORARY TABLE test (ad DEFAULT t.* NOT NULL); -- { clientError SYNTAX_ERROR }