Actual fix: the database product was reported as “PostgreSQL” by the driver. As the custom “Locale” used in the ResourceBundle is case-sensitive, the mixed-case properties file fails to be resolved (at least on case-sensitive file systems)

This commit is contained in:
Stefan Neuhaus
2017-07-13 21:16:46 +02:00
parent 4fc2abd183
commit fccac8cb85
2 changed files with 1 additions and 1 deletions

View File

@@ -231,7 +231,7 @@ public final class CveDB implements AutoCloseable {
*/
private static String determineDatabaseProductName(Connection conn) {
try {
final String databaseProductName = conn.getMetaData().getDatabaseProductName();
final String databaseProductName = conn.getMetaData().getDatabaseProductName().toLowerCase();
LOGGER.debug("Database product: {}", databaseProductName);
return databaseProductName;
} catch (SQLException se) {