| 230 | } |
| 231 | |
| 232 | std::unordered_set<String> getAllTableNames(const Block & block, bool to_lower_case) |
| 233 | { |
| 234 | std::unordered_set<String> nested_table_names; |
| 235 | for (const auto & name : block.getNames()) |
| 236 | { |
| 237 | auto nested_table_name = Nested::extractTableName(name); |
| 238 | if (to_lower_case) |
| 239 | boost::to_lower(nested_table_name); |
| 240 | |
| 241 | if (!nested_table_name.empty()) |
| 242 | nested_table_names.insert(std::move(nested_table_name)); |
| 243 | } |
| 244 | return nested_table_names; |
| 245 | } |
| 246 | |
| 247 | } |
| 248 |
no test coverage detected