GH-9620: Use Locale.ROOT for neutral, case insensitive comparisons
Fixes: #9620
Issue link: https://github.com/spring-projects/spring-integration/issues/9620
(cherry picked from commit 0d2595ef7c)
This commit is contained in:
committed by
Spring Builds
parent
4ffc6641b7
commit
5c76a47e55
@@ -19,6 +19,7 @@ package org.springframework.integration.jdbc.channel;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.time.Duration;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
@@ -192,7 +193,7 @@ public final class PostgresChannelMessageTableSubscriber implements SmartLifecyc
|
||||
try {
|
||||
PgConnection conn = this.connectionSupplier.get();
|
||||
try (Statement stmt = conn.createStatement()) {
|
||||
stmt.execute("LISTEN " + this.tablePrefix.toLowerCase() + "channel_message_notify");
|
||||
stmt.execute("LISTEN " + this.tablePrefix.toLowerCase(Locale.ROOT) + "channel_message_notify");
|
||||
}
|
||||
catch (Exception ex) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user