https://kotlinlang.org logo
#exposed
Title
# exposed
b

bjonnh

01/02/2019, 6:43 PM
would that make sense to add ilike : infix fun<T:String?> ExpressionWithColumnType<T>.ilike(pattern: String): Op<Boolean> = ILikeOp(this, QueryParameter(pattern, columnType)) class ILikeOp(expr1: Expression<*>, expr2: Expression<*>) : ComparisonOp(expr1, expr2, "ILIKE")
t

tapac

01/09/2019, 1:58 PM
Is this applicable only for PostgreSQL or any other databases?
b

bjonnh

01/09/2019, 3:31 PM
It looks like by default MySQL is case insensitive for LIKE…
t

tapac

01/10/2019, 8:32 AM
It depends on column collations and yes, default is
utf8_general_ci
which is case insensitive
3 Views