提交 08d3d0aa 编写于 作者: M meyerd

Fix for ACT-1170 'selectExclusiveJobsToExecute' does not work for DB2 and MSSQL

上级 5ffbf17e
......@@ -56,9 +56,15 @@ public class DbSqlSessionFactory implements SessionFactory {
addDatabaseSpecificStatement("postgres", "insertComment", "insertComment_postgres");
addDatabaseSpecificStatement("postgres", "selectCommentsByTaskId", "selectCommentsByTaskId_postgres");
addDatabaseSpecificStatement("postgres", "selectCommentsByProcessInstanceId", "selectCommentsByProcessInstanceId_postgres");
// oracle
addDatabaseSpecificStatement("oracle", "selectExclusiveJobsToExecute", "selectExclusiveJobsToExecute_oracle");
addDatabaseSpecificStatement("oracle", "selectExclusiveJobsToExecute", "selectExclusiveJobsToExecute_integerBoolean");
// db2
addDatabaseSpecificStatement("db2", "selectExclusiveJobsToExecute", "selectExclusiveJobsToExecute_integerBoolean");
// mssql
addDatabaseSpecificStatement("mssql", "selectExclusiveJobsToExecute", "selectExclusiveJobsToExecute_integerBoolean");
}
protected String databaseType;
......
......@@ -73,7 +73,7 @@
and (PROCESS_INSTANCE_ID_ = #{pid})
</select>
<select id="selectExclusiveJobsToExecute_oracle" parameterType="map" resultMap="jobResultMap">
<select id="selectExclusiveJobsToExecute_integerBoolean" parameterType="map" resultMap="jobResultMap">
select *
from ACT_RU_JOB
where (RETRIES_ &gt; 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册