ClickHouse/src/Parsers/queryToString.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
275 B
C++
Raw Normal View History

#include <Parsers/queryToString.h>
#include <Parsers/formatAST.h>
2014-11-12 10:37:47 +00:00
namespace DB
{
String queryToString(const ASTPtr & query)
{
return queryToString(*query);
}
String queryToString(const IAST & query)
2014-11-12 10:37:47 +00:00
{
2020-11-09 16:05:40 +00:00
return serializeAST(query);
2014-11-12 10:37:47 +00:00
}
}