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

Commit 02b4a387 authored by Hall Liu's avatar Hall Liu
Browse files

Allow empty tokens in strict grammar

In SQLiteQueryBuilder, allow empty tokens when checking for invalid
tokens during the strict grammar check.

Fixes: 151151800
Test: atest SQLiteQueryBuilderTest#testStrictQueryEmptyToken
Change-Id: Iac1cdd643253fd186a164b863d65d6e92698fd38
(cherry picked from commit e409ec24)
Merged-In: Iac1cdd643253fd186a164b863d65d6e92698fd38
parent 3516e98d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -798,6 +798,7 @@ public class SQLiteQueryBuilder {
    }

    private void enforceStrictToken(@NonNull String token) {
        if (TextUtils.isEmpty(token)) return;
        if (isTableOrColumn(token)) return;
        if (SQLiteTokenizer.isFunction(token)) return;
        if (SQLiteTokenizer.isType(token)) return;