mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
310ed66b00
This reverts commit 6f4f44ce7980cace32edd0913b8d1d53cd51682b.
37 lines
634 B
C++
37 lines
634 B
C++
#pragma once
|
|
|
|
#include <DB/Core/Field.h>
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
/** SET запрос
|
|
*/
|
|
class ASTSetQuery : public IAST
|
|
{
|
|
public:
|
|
struct Change
|
|
{
|
|
String name;
|
|
Field value;
|
|
};
|
|
|
|
typedef std::vector<Change> Changes;
|
|
Changes changes;
|
|
|
|
bool global; /// Если запрос SET GLOBAL.
|
|
|
|
ASTSetQuery() = default;
|
|
ASTSetQuery(const StringRange range_) : IAST(range_) {}
|
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
|
String getID() const override { return "Set"; };
|
|
|
|
ASTPtr clone() const override { return new ASTSetQuery(*this); }
|
|
};
|
|
|
|
}
|