From a9751d5a511756a9f20b95baddb00139bdd9cd86 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 3 Mar 2019 12:02:26 -0800 Subject: [PATCH] =?UTF-8?q?Get=20searchRowID=20by=20column=20index=200,=20?= =?UTF-8?q?since=20it=E2=80=99s=20a=20single-column=20query.=20This=20shou?= =?UTF-8?q?ld=20make=20searching=20imperceptibly=20faster.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/ArticlesDatabase/ArticlesTable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/ArticlesDatabase/ArticlesTable.swift b/Frameworks/ArticlesDatabase/ArticlesTable.swift index c60144e7d..677d626a7 100644 --- a/Frameworks/ArticlesDatabase/ArticlesTable.swift +++ b/Frameworks/ArticlesDatabase/ArticlesTable.swift @@ -507,7 +507,7 @@ private extension ArticlesTable { guard let resultSet = database.executeQuery(sql, withArgumentsIn: searchStringParameters) else { return Set
() } - let searchRowIDs = resultSet.mapToSet { $0.longLongInt(forColumn: DatabaseKey.rowID) } + let searchRowIDs = resultSet.mapToSet { $0.longLongInt(forColumnIndex: 0) } if searchRowIDs.isEmpty { return Set
() }