mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +01:00
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:
@@ -231,7 +231,7 @@ public final class CveDB implements AutoCloseable {
|
|||||||
*/
|
*/
|
||||||
private static String determineDatabaseProductName(Connection conn) {
|
private static String determineDatabaseProductName(Connection conn) {
|
||||||
try {
|
try {
|
||||||
final String databaseProductName = conn.getMetaData().getDatabaseProductName();
|
final String databaseProductName = conn.getMetaData().getDatabaseProductName().toLowerCase();
|
||||||
LOGGER.debug("Database product: {}", databaseProductName);
|
LOGGER.debug("Database product: {}", databaseProductName);
|
||||||
return databaseProductName;
|
return databaseProductName;
|
||||||
} catch (SQLException se) {
|
} catch (SQLException se) {
|
||||||
|
|||||||
Reference in New Issue
Block a user