2012-06-18 06:19:13 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <DB/Parsers/IParserBase.h>
|
|
|
|
|
#include <DB/Parsers/ExpressionElementParsers.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/** Запрос типа такого:
|
|
|
|
|
* RENAME TABLE [db.]name TO [db.]name, [db.]name TO [db.]name, ...
|
|
|
|
|
* (Переименовываться может произвольное количество таблиц.)
|
|
|
|
|
*/
|
|
|
|
|
class ParserRenameQuery : public IParserBase
|
|
|
|
|
{
|
|
|
|
|
protected:
|
2014-03-10 12:25:37 +00:00
|
|
|
|
const char * getName() const { return "RENAME query"; }
|
2015-04-11 03:10:23 +00:00
|
|
|
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
|
2012-06-18 06:19:13 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|