[ http://issues.apache.org/jira/browse/IBATIS-175?page=all ]
Clinton Begin closed IBATIS-175:
--------------------------------
Fix Version: 2.2.0
Resolution: Fixed
Assign To: Clinton Begin
fixed as described. thanks for the details.
> ResultSetLogProxy doesn't log the result properly
> -------------------------------------------------
>
> Key: IBATIS-175
> URL: http://issues.apache.org/jira/browse/IBATIS-175
> Project: iBatis for Java
> Type: Bug
> Components: SQL Maps
> Versions: 2.0.8
> Environment: Windows and Solaris.
> Reporter: Zhongmin Chen
> Assignee: Clinton Begin
> Priority: Minor
> Fix For: 2.2.0
>
> In my program, I used:
> PaginatedList list = queryForPaginatedList("stmt", parameterMap, 25);
> It will get more than 50 rows for the query, so it will get 50 rows for the
> first time. but from the log file, I only found 49 occurence of the following:
> <timestamp> java.sql.ResultSet DEBUG - {rset-<id>} Result: <data>
> So I wondering whether iBATIS retrieved correct number of rows.
> When I looked at the source code - ResultSetLogProxy, I realized that when it
> called next(), it will log the result of the last call of next(), and it will
> not work for the PaginatedList since it may not call one more time of next().
> And I found that it will fix the problem if you change the line 55 of
> ResultSetLogProxy to be like below:
> } else if ("next".equals(method.getName()) ||
> "close".equals(method.getName())) {
> (This is still the same in version - 2.1.15)
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira