Skip to content

Commit

Permalink
Update vendored DuckDB sources to 8307ca4
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdblabs-bot committed Nov 3, 2024
1 parent 8307ca4 commit 1bd9a4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/duckdb/src/function/table/version/pragma_version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DUCKDB_PATCH_VERSION
#define DUCKDB_PATCH_VERSION "3-dev158"
#define DUCKDB_PATCH_VERSION "3-dev165"
#endif
#ifndef DUCKDB_MINOR_VERSION
#define DUCKDB_MINOR_VERSION 1
Expand All @@ -8,10 +8,10 @@
#define DUCKDB_MAJOR_VERSION 1
#endif
#ifndef DUCKDB_VERSION
#define DUCKDB_VERSION "v1.1.3-dev158"
#define DUCKDB_VERSION "v1.1.3-dev165"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "c3ca3607c2"
#define DUCKDB_SOURCE_ID "19864453f7"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "duckdb/catalog/catalog_entry/scalar_macro_catalog_entry.hpp"
#include "duckdb/common/enums/expression_type.hpp"
#include "duckdb/common/reference_map.hpp"
#include "duckdb/common/string_util.hpp"
#include "duckdb/function/scalar_macro_function.hpp"
Expand Down Expand Up @@ -26,12 +27,8 @@ void ExpressionBinder::ReplaceMacroParametersInLambda(FunctionExpression &functi

if (!error_message.empty()) {
// Possibly a JSON function, replace both LHS and RHS.
ParsedExpressionIterator::EnumerateChildren(*lambda_expr.lhs, [&](unique_ptr<ParsedExpression> &child) {
ReplaceMacroParameters(child, lambda_params);
});
ParsedExpressionIterator::EnumerateChildren(*lambda_expr.expr, [&](unique_ptr<ParsedExpression> &child) {
ReplaceMacroParameters(child, lambda_params);
});
ReplaceMacroParameters(lambda_expr.lhs, lambda_params);
ReplaceMacroParameters(lambda_expr.expr, lambda_params);
continue;
}

Expand All @@ -43,9 +40,7 @@ void ExpressionBinder::ReplaceMacroParametersInLambda(FunctionExpression &functi
}

// Only replace in the RHS of the expression.
ParsedExpressionIterator::EnumerateChildren(*lambda_expr.expr, [&](unique_ptr<ParsedExpression> &child) {
ReplaceMacroParameters(child, lambda_params);
});
ReplaceMacroParameters(lambda_expr.expr, lambda_params);

lambda_params.pop_back();
}
Expand Down

0 comments on commit 1bd9a4b

Please sign in to comment.