mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Fix formatting of INSERT ... COMPRESSION
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
9a76efb850
commit
93bbe9641a
@ -91,7 +91,7 @@ void ASTInsertQuery::formatImpl(const FormatSettings & settings, FormatState & s
|
||||
<< (settings.hilite ? hilite_keyword : "")
|
||||
<< " COMPRESSION "
|
||||
<< (settings.hilite ? hilite_none : "")
|
||||
<< compression->as<ASTLiteral &>().value.safeGet<std::string>();
|
||||
<< quoteString(compression->as<ASTLiteral &>().value.safeGet<std::string>());
|
||||
}
|
||||
|
||||
if (select)
|
||||
|
@ -0,0 +1,3 @@
|
||||
-- { echo }
|
||||
EXPLAIN SYNTAX INSERT INTO foo FROM INFILE '/dev/null' COMPRESSION 'gz';
|
||||
INSERT INTO foo FROM INFILE \'/dev/null\' COMPRESSION \'gz\'
|
@ -0,0 +1,2 @@
|
||||
-- { echo }
|
||||
EXPLAIN SYNTAX INSERT INTO foo FROM INFILE '/dev/null' COMPRESSION 'gz';
|
Loading…
Reference in New Issue
Block a user