Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[photos] Keep complete rows in FilesDB materialization

ashil-pilot0011f1056ef1
diff --git a/mobile/apps/photos/lib/db/files_db.dart b/mobile/apps/photos/lib/db/files_db.dart
index b434f3e3da..19686838ee 100644
--- a/mobile/apps/photos/lib/db/files_db.dart
+++ b/mobile/apps/photos/lib/db/files_db.dart
@@ -126,8 +126,6 @@ class FilesDB with SqlDbBase {
columnAddedTime,
];
- static final String _fileRowProjection = _columnNames.join(", ");
-
FilesDB._privateConstructor();
static final FilesDB instance = FilesDB._privateConstructor();
@@ -2012,7 +2010,7 @@ class FilesDB with SqlDbBase {
? ' AND (${order.columns.join(', ')}) ${order.comparison} '
'(${List.filled(order.columns.length, '?').join(', ')})'
: '';
- return 'SELECT $_fileRowProjection FROM $filesTable '
+ return 'SELECT * FROM $filesTable '
'WHERE ($whereClause)$pageBoundaryClause '
'ORDER BY ${order.orderByClause} LIMIT ?';
}