This commit is contained in:
Mariotaku Lee 2018-05-25 23:47:38 +08:00
parent fe55b7a3ac
commit 7ca6931959
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 2 additions and 2 deletions

View File

@ -448,10 +448,10 @@ object DataStoreUtils {
Expression.likeRaw(Column(Table(table), dataField), "'%'||$filterTable.$filterField||'%'")
fun lineContainsExpression(dataField: String, filterTable: String, filterField: String) =
Expression.likeRaw(Column(Table(table), dataField), "'\\\\%'||$filterTable.$filterField||'%\\\\'")
Expression.likeRaw(Column(Table(table), dataField), "'\\%'||$filterTable.$filterField||'%\\'")
fun lineMatchExpression(dataField: String, filterTable: String, filterField: String) =
Expression.likeRaw(Column(Table(table), dataField), "'%\\\\'||$filterTable.$filterField||'\\\\%'")
Expression.likeRaw(Column(Table(table), dataField), "'%\\'||$filterTable.$filterField||'\\%'")
val filteredUsersWhere = Expression.and(
scopeMatchesExpression(Filters.Users.TABLE_NAME, Filters.Users.SCOPE),