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

Commit e409ec24 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
parent 4a63d9a9
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;