mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix parsing query INSERT INTO ... VALUES SETTINGS ... (...), ...
This commit is contained in:
parent
3501b56587
commit
c4cd8c6da4
@ -184,6 +184,10 @@ bool ParserInsertQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
|
||||
ParserSetQuery parser_settings(true);
|
||||
if (!parser_settings.parse(pos, settings_ast, expected))
|
||||
return false;
|
||||
/// In case of INSERT INTO ... VALUES SETTINGS ... (...), (...), ...
|
||||
/// we should move data pointer after all settings.
|
||||
if (data != nullptr)
|
||||
data = pos->begin;
|
||||
}
|
||||
|
||||
if (select)
|
||||
|
@ -0,0 +1,4 @@
|
||||
drop table if exists t;
|
||||
create table t (x Bool) engine=Memory();
|
||||
insert into t values settings bool_true_representation='да' ('да');
|
||||
drop table t;
|
Loading…
Reference in New Issue
Block a user