| 30 | } |
| 31 | |
| 32 | void 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 | |
| 42 | string ScalarMacroFunction::ToSQL() const { |
| 43 | // In case of nested macro's we need to fix it a bit |