BUG of IBatis.net's cacheModel
------------------------------

         Key: IBATISNET-28
         URL: http://issues.apache.org/jira/browse/IBATISNET-28
     Project: iBatis for .NET
        Type: Bug
    Versions: DataMaper 1.5    
 Environment: win2003 .net framework1.1  Ibatis.net 1.0.1.321
    Reporter: hengxian yang


 BUG of IBatis.net's cacheModel.
when you setting Cachemodel named "select" statement and the query
result is null,the cache of IBatis does not work and throw an
exception.
int IBatis.net 1.321.
I check the cs source. find 3 points in MappedStatements.cs .line:400, 527 778.
i modify the souce as follows:

obj = RunQueryForObject(request, session, parameterObject, resultObject);
if(obj!=null)
{

    _statement.CacheModel[key] = obj;

}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to