fix gcc9 build

This commit is contained in:
Artem Zuikov 2020-02-27 21:05:49 +03:00
parent 68dc399d0d
commit aad6669afb

View File

@ -938,7 +938,7 @@ SyntaxAnalyzerResultPtr SyntaxAnalyzer::analyzeSelect(
SyntaxAnalyzerResultPtr SyntaxAnalyzer::analyze(ASTPtr & query, const NamesAndTypesList & source_columns, StoragePtr storage) const
{
if (auto * select_query = query->as<ASTSelectQuery>())
if (query->as<ASTSelectQuery>())
throw Exception("Not select analyze for select asts.", ErrorCodes::LOGICAL_ERROR);
const auto & settings = context.getSettingsRef();