-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Locale.ROOT when user toUpperCase or toLowerCase #6049
Conversation
@@ -52,7 +53,7 @@ public class PostgreSQLTextToOID { | |||
public static void convertColumnToOID(String table, String id, String column, DataSource dataSource) { | |||
|
|||
try (Connection connection = dataSource.getConnection()) { | |||
try (ResultSet resultSet = connection.getMetaData().getColumns(null, null, table.toUpperCase(), column.toUpperCase())) { | |||
try (ResultSet resultSet = connection.getMetaData().getColumns(null, null, table.toUpperCase(Locale.ROOT), column.toUpperCase())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed the colum.toUpperCase()
@@ -90,7 +91,7 @@ public static void convertColumnToOID(String table, String id, String column, Da | |||
|
|||
public static void convertColumnFromOID(String table, String id, String column, DataSource dataSource) { | |||
try (Connection connection = dataSource.getConnection()) { | |||
try (ResultSet resultSet = connection.getMetaData().getColumns(null, null, table.toUpperCase(), column.toUpperCase())) { | |||
try (ResultSet resultSet = connection.getMetaData().getColumns(null, null, table.toUpperCase(), column.toUpperCase(Locale.ROOT))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed table.toUpperCase()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOOT WOOT! Great Catches!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
resolves spring-cloud#6048 Signed-off-by: Glenn Renfro <[email protected]> Update code based on code review Add to missing Locale.ROOT values to the toUpperCase Signed-off-by: Glenn Renfro <[email protected]>
resolves #6048