test #173

Merged
klaus merged 5 commits from test into main 2024-05-02 16:41:51 +00:00
1 changed files with 8 additions and 6 deletions
Showing only changes of commit 54072412f3 - Show all commits

View File

@ -185,11 +185,13 @@ class ExplorerQueryRepository(
val rotatedChars = characters.drop(offset) + characters.take(offset)
val caseBuilder = Expressions.stringTemplate(
"CASE {0}",
rotatedChars
.withIndex()
.joinToString(" ") {
"WHEN {0} THEN {1}".format(member.email.startsWith(it.value), it.index + 1)
"CASE",
rotatedChars.withIndex().joinToString(" ") {
"WHEN {0} LIKE {1} THEN {2}".format(
member.email,
"'" + it.value + "%'",
it.index + 1
)
}
)