Fix unused variable in transformQueryForExternalDatabase

This commit is contained in:
vdimir 2021-03-12 17:03:33 +03:00
parent 91180fa06f
commit 7b494c63b8
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -181,7 +181,7 @@ bool removeUnknownSubexpressions(ASTPtr & node, const NameSet & known_names)
if (const auto * ident = node->as<ASTIdentifier>())
return known_names.contains(ident->name());
if (const auto * lit = node->as<ASTLiteral>())
if (node->as<ASTLiteral>() != nullptr)
return true;
auto * func = node->as<ASTFunction>();