提交 c18a2024 编写于 作者: J Joram Barrez

Fix failing sql server tests

上级 afb53fd7
......@@ -152,7 +152,7 @@ public abstract class AbstractEngineConfiguration {
*/
protected int maxNrOfStatementsInBulkInsert = 100;
public int DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER = 70; // currently Execution has most params (28). 2000 / 28 = 71.
public int DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER = 60; // currently Execution has most params (31). 2000 / 31 = 64.
protected Set<Class<?>> customMybatisMappers;
protected Set<String> customMybatisXMLMappers;
......@@ -365,6 +365,12 @@ public abstract class AbstractEngineConfiguration {
LOGGER.error("Exception while closing the Database connection", e);
}
}
// Special care for MSSQL, as it has a hard limit of 2000 params per statement (incl bulk statement).
// Especially with executions, with 100 as default, this limit is passed.
if (DATABASE_TYPE_MSSQL.equals(databaseType)) {
maxNrOfStatementsInBulkInsert = DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER;
}
}
public void initDbSchemaManager() {
......
......@@ -915,16 +915,6 @@ public abstract class ProcessEngineConfigurationImpl extends ProcessEngineConfig
}
}
@Override
public void initDatabaseType() {
super.initDatabaseType();
// Special care for MSSQL, as it has a hard limit of 2000 params per statement (incl bulk statement).
// Especially with executions, with 100 as default, this limit is passed.
if (DATABASE_TYPE_MSSQL.equals(databaseType)) {
maxNrOfStatementsInBulkInsert = DEFAULT_MAX_NR_OF_STATEMENTS_BULK_INSERT_SQL_SERVER;
}
}
public void initDbSchemaManagers() {
super.initDbSchemaManager();
initProcessDbSchemaManager();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册