mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
33d99c8ffb
Add allow_settings_after_format_in_insert setting, OFF by default. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com> v2: s/parser_settings_after_format_compact/allow_settings_after_format_in_insert/ (suggested by vitlibar) v3: replace ParserSettings with a flag (requested by vitlibar)
26 lines
551 B
C++
26 lines
551 B
C++
#pragma once
|
|
|
|
#include <Parsers/IParserBase.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ParserQuery : public IParserBase
|
|
{
|
|
private:
|
|
const char * end;
|
|
bool allow_settings_after_format_in_insert;
|
|
|
|
const char * getName() const override { return "Query"; }
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
|
|
public:
|
|
explicit ParserQuery(const char * end_, bool allow_settings_after_format_in_insert_ = false)
|
|
: end(end_)
|
|
, allow_settings_after_format_in_insert(allow_settings_after_format_in_insert_)
|
|
{}
|
|
};
|
|
|
|
}
|