MCPcopy Create free account
hub / github.com/duckdb/duckdb / RemoveQualificationRecursive

Function RemoveQualificationRecursive

src/function/scalar_macro_function.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void RemoveQualificationRecursive(unique_ptr<ParsedExpression> &root_expr) {
33 ParsedExpressionIterator::VisitExpressionMutable<ColumnRefExpression>(
34 *root_expr, [&](ColumnRefExpression &col_ref) {
35 auto &col_names = col_ref.column_names;
36 if (col_names.size() == 2 && col_names[0].find(DummyBinding::DUMMY_NAME) != string::npos) {
37 col_names.erase(col_names.begin());
38 }
39 });
40}
41
42string ScalarMacroFunction::ToSQL() const {
43 // In case of nested macro's we need to fix it a bit

Callers 1

ToSQLMethod · 0.85

Calls 4

sizeMethod · 0.45
findMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected