mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
77e4b0c8d9
This reverts commitac90637170
, reversing changes made tofe2b5cde05
.
16 lines
275 B
C++
16 lines
275 B
C++
#include <Parsers/queryToString.h>
|
|
#include <Parsers/formatAST.h>
|
|
|
|
namespace DB
|
|
{
|
|
String queryToString(const ASTPtr & query)
|
|
{
|
|
return queryToString(*query);
|
|
}
|
|
|
|
String queryToString(const IAST & query)
|
|
{
|
|
return serializeAST(query);
|
|
}
|
|
}
|