Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71c694aa authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Allow "LOCALIZED" and "UNICODE" collators.

These custom collators are added by ./android/sqlite3_android.cpp,
so let callers use them.

Bug: 140666363
Test: atest android.database.sqlite.cts.SQLiteQueryBuilderTest
Change-Id: I6674b04afb5bbb5f9870329431549eca8e4f5bc6
parent cd880e95
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -823,6 +823,7 @@ public class SQLiteQueryBuilder {
        switch (token.toUpperCase(Locale.US)) {
            case "COLLATE": case "ASC": case "DESC":
            case "BINARY": case "RTRIM": case "NOCASE":
            case "LOCALIZED": case "UNICODE":
                return;
        }
        throw new IllegalArgumentException("Invalid token " + token);