Merge branch 'master' into fix_scope_of_interpreter_select_query_in_mutations

This commit is contained in:
alesapin 2019-11-07 14:06:31 +03:00
commit d80e8dfde3

View File

@ -170,7 +170,7 @@ String getObjectDefinitionFromCreateQuery(const ASTPtr & query)
if (!create)
{
std::ostringstream query_stream;
formatAST(*create, query_stream, true);
formatAST(*query, query_stream, true);
throw Exception("Query '" + query_stream.str() + "' is not CREATE query", ErrorCodes::LOGICAL_ERROR);
}