Skip to content

Commit 99aa5cc

Browse files
Fixed idiotic error in system.parts
1 parent 8d3ede9 commit 99aa5cc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

dbms/src/Storages/System/StorageSystemPartsBase.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,9 @@ StoragesInfoStream::StoragesInfoStream(const SelectQueryInfo & query_info, const
148148

149149
StoragesInfo StoragesInfoStream::next()
150150
{
151-
StoragesInfo info;
152-
153151
while (next_row < rows)
154152
{
153+
StoragesInfo info;
155154

156155
info.database = (*database_column)[next_row].get<String>();
157156
info.table = (*table_column)[next_row].get<String>();
@@ -198,10 +197,10 @@ StoragesInfo StoragesInfoStream::next()
198197
if (!info.data)
199198
throw Exception("Unknown engine " + info.engine, ErrorCodes::LOGICAL_ERROR);
200199

201-
break;
200+
return info;
202201
}
203202

204-
return info;
203+
return {};
205204
}
206205

207206
BlockInputStreams StorageSystemPartsBase::read(

0 commit comments

Comments
 (0)