Remove useless group by and order by in NotesDatabase.java

This commit is contained in:
Isc 2020-05-09 16:26:37 +08:00
parent 5854b90877
commit 35fafaf557

View file

@ -822,9 +822,9 @@ public class NotesDatabase extends AbstractNotesDatabase {
new String[]{key_category_id},
key_category_title + " = ? AND " + key_category_account_id + " = ? ",
new String[]{categoryTitle, String.valueOf(accountId)},
key_category_id,
null,
key_category_id);
null,
null);
int id = -1;
if (cursor.moveToNext()) {
id = cursor.getInt(0);