File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ const ColumnWithTypeAndName & Block::safeGetByPosition(size_t position) const
290290}
291291
292292
293- const ColumnWithTypeAndName * Block::findByName (const std::string_view & name, bool case_insensitive) const
293+ const ColumnWithTypeAndName * Block::findByName (std::string_view name, bool case_insensitive) const
294294{
295295 if (case_insensitive)
296296 {
Original file line number Diff line number Diff line change @@ -71,13 +71,7 @@ class Block
7171 const_cast <const Block *>(this )->findByName (name, case_insensitive));
7272 }
7373
74- ColumnWithTypeAndName* findByName (const std::string_view & name, bool case_insensitive = false )
75- {
76- return const_cast <ColumnWithTypeAndName *>(
77- const_cast <const Block *>(this )->findByName (name, case_insensitive));
78- }
79-
80- const ColumnWithTypeAndName * findByName (const std::string_view & name, bool case_insensitive) const ;
74+ const ColumnWithTypeAndName * findByName (std::string_view name, bool case_insensitive = false ) const ;
8175
8276 const ColumnWithTypeAndName * findByName (const std::string & name, bool case_insensitive = false ) const ;
8377 std::optional<ColumnWithTypeAndName> findSubcolumnByName (const std::string & name) const ;
You can’t perform that action at this time.
0 commit comments