Revert "dbms: fix column names asynchrony in SELECT from StorageDistributed. [#METR-13399]"

This reverts commit f68d3226e0e55179b4cd734477f0aa45b669d6fa.
This commit is contained in:
Alexey Milovidov 2014-11-25 19:33:01 +03:00
parent e310a3021b
commit 071e31a7fa

View File

@ -21,9 +21,9 @@ namespace
{
/// select query has database and table names as AST pointers
/// Создает копию запроса, меняет имена базы данных и таблицы.
inline ASTPtr rewriteSelectQuery(ASTPtr & query, const std::string & database, const std::string & table)
inline ASTPtr rewriteSelectQuery(const ASTPtr & query, const std::string & database, const std::string & table)
{
auto & modified_query_ast = query;
auto modified_query_ast = query->clone();
auto & actual_query = typeid_cast<ASTSelectQuery &>(*modified_query_ast);
actual_query.database = new ASTIdentifier{{}, database, ASTIdentifier::Database};