mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Fix stupid bug in parser
This commit is contained in:
parent
e83b6d0c2e
commit
3b498c603b
@ -125,7 +125,7 @@ bool ParserAlterCommand::parseImpl(Pos & pos, ASTPtr & node, Expected & expected
|
|||||||
}
|
}
|
||||||
else if (s_rename_column.ignore(pos, expected))
|
else if (s_rename_column.ignore(pos, expected))
|
||||||
{
|
{
|
||||||
if (s_if_not_exists.ignore(pos, expected))
|
if (s_if_exists.ignore(pos, expected))
|
||||||
command->if_not_exists = true;
|
command->if_not_exists = true;
|
||||||
|
|
||||||
if (!parser_name.parse(pos, command->column, expected))
|
if (!parser_name.parse(pos, command->column, expected))
|
||||||
|
@ -32,4 +32,7 @@ SELECT renamed_value2, renamed_value3 FROM table_for_rename WHERE key = 7;
|
|||||||
|
|
||||||
SELECT * FROM table_for_rename WHERE key = 7 FORMAT TSVWithNames;
|
SELECT * FROM table_for_rename WHERE key = 7 FORMAT TSVWithNames;
|
||||||
|
|
||||||
|
ALTER TABLE table_for_rename RENAME COLUMN value100 to renamed_value100; --{serverError 10}
|
||||||
|
ALTER TABLE table_for_rename RENAME COLUMN IF EXISTS value100 to renamed_value100;
|
||||||
|
|
||||||
DROP TABLE IF EXISTS table_for_rename;
|
DROP TABLE IF EXISTS table_for_rename;
|
||||||
|
Loading…
Reference in New Issue
Block a user