Skip to content

Commit

Permalink
Escaping to like expressions. (#1469) / Fix detectSpecialChars for ca…
Browse files Browse the repository at this point in the history
…se-insensitive databases
  • Loading branch information
Tapac committed Jul 17, 2022
1 parent 64d2a33 commit c005db9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class LikeTests : DatabaseTestsBase() {
fun detectSpecialChars() {
withTables(t) {
// Lets assume there are no special chars outside this range
val charRange = Char.MIN_VALUE..1000.toChar()
val escapeChar = 1001.toChar()
val escapeChar = '+'
val charRange = ('A'..'Z').toSet() + db.dialect.likePatternSpecialChars.toList()

charRange.forEach { chr ->
t.insert {
Expand Down

0 comments on commit c005db9

Please sign in to comment.