From 67fdae60e6053edcd068c5be4e273a6c417412a0 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 12 Dec 2024 09:56:20 +0100 Subject: [PATCH] renamed parameter 'struct'extract' to distinguish between 'struct_extract()' and 'struct_extract_at()' --- src/function/scalar/struct/struct_extract.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function/scalar/struct/struct_extract.cpp b/src/function/scalar/struct/struct_extract.cpp index 0854e667cb36..269f0e3fc079 100644 --- a/src/function/scalar/struct/struct_extract.cpp +++ b/src/function/scalar/struct/struct_extract.cpp @@ -88,7 +88,7 @@ static unique_ptr StructExtractBind(ClientContext &context, Scalar } static unique_ptr StructExtractBindInternal(ClientContext &context, ScalarFunction &bound_function, - vector> &arguments, bool by_pos) { + vector> &arguments, bool struct_extract) { D_ASSERT(bound_function.arguments.size() == 2); auto &child_type = arguments[0]->return_type; if (child_type.id() == LogicalTypeId::UNKNOWN) { @@ -99,7 +99,7 @@ static unique_ptr StructExtractBindInternal(ClientContext &context if (struct_children.empty()) { throw InternalException("Can't extract something from an empty struct"); } - if (by_pos && !StructType::IsUnnamed(child_type)) { + if (struct_extract && !StructType::IsUnnamed(child_type)) { throw BinderException( "struct_extract with an integer key can only be used on unnamed structs, use a string key instead"); }