mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALF-7241:
- patch to mybatis-3.0.4 - configuration option (property 'mybatis.useLocalCaches') to disable local caches that cause problems with result handlers not returning any results git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31333 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -199,11 +199,7 @@ public class CannedQueryDAOImpl extends AbstractCannedQueryDAOImpl
|
||||
ResultHandlerTranslator<R> resultHandler = new ResultHandlerTranslator<R>(handler);
|
||||
try
|
||||
{
|
||||
// TODO MyBatis workaround
|
||||
// http://code.google.com/p/mybatis/issues/detail?id=58 (and #139, #234, ...)
|
||||
template.clearCache();
|
||||
|
||||
if ((offset == 0) && (limit == Integer.MAX_VALUE))
|
||||
if ((offset == 0) && (limit == Integer.MAX_VALUE))
|
||||
{
|
||||
template.select(query, parameterObj, resultHandler);
|
||||
}
|
||||
|
Reference in New Issue
Block a user