mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #33776 from Avogar/fix-insert-values
Fix parsing query INSERT INTO ... VALUES SETTINGS ... (...), ...
This commit is contained in:
commit
f644602ec8
@ -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