Fix non-select queries

This commit is contained in:
Amos Bird 2021-01-04 13:01:19 +08:00
parent 3afcccaad2
commit b6a5d2f8e9
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4

View File

@ -68,6 +68,12 @@ void ApplyWithGlobalVisitor::visit(ASTPtr & ast)
}
}
}
else
{
// Other non-SELECT queries that contains SELECT children, such as EXPLAIN or INSERT
for (auto & child : ast->children)
visit(child);
}
}
}