mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 10:01:35 +01:00
disabling batch support for mysql to fix issue #503 - more testing needs to be done
This commit is contained in:
@@ -87,10 +87,12 @@ public class CveDB {
|
|||||||
open();
|
open();
|
||||||
try {
|
try {
|
||||||
final String databaseProductName = conn.getMetaData().getDatabaseProductName();
|
final String databaseProductName = conn.getMetaData().getDatabaseProductName();
|
||||||
batchSupported = conn.getMetaData().supportsBatchUpdates();
|
|
||||||
LOGGER.debug("Database dialect: {}", databaseProductName);
|
LOGGER.debug("Database dialect: {}", databaseProductName);
|
||||||
final Locale dbDialect = new Locale(databaseProductName);
|
final Locale dbDialect = new Locale(databaseProductName);
|
||||||
statementBundle = ResourceBundle.getBundle("data/dbStatements", dbDialect);
|
statementBundle = ResourceBundle.getBundle("data/dbStatements", dbDialect);
|
||||||
|
if ("mysql".equalsIgnoreCase(databaseProductName)) {
|
||||||
|
batchSupported = false;
|
||||||
|
}
|
||||||
} catch (SQLException se) {
|
} catch (SQLException se) {
|
||||||
LOGGER.warn("Problem loading database specific dialect!", se);
|
LOGGER.warn("Problem loading database specific dialect!", se);
|
||||||
statementBundle = ResourceBundle.getBundle("data/dbStatements");
|
statementBundle = ResourceBundle.getBundle("data/dbStatements");
|
||||||
|
|||||||
Reference in New Issue
Block a user