diff --git a/src/main/java/org/apache/ibatis/cursor/Cursor.java b/src/main/java/org/apache/ibatis/cursor/Cursor.java index 555bd5735d9..20d7e66790a 100644 --- a/src/main/java/org/apache/ibatis/cursor/Cursor.java +++ b/src/main/java/org/apache/ibatis/cursor/Cursor.java @@ -20,7 +20,8 @@ /** * Cursor contract to handle fetching items lazily using an Iterator. * Cursors are a perfect fit to handle millions of items queries that would not normally fits in memory. - * Cursor SQL queries must be ordered (resultOrdered="true") using the id columns of the resultMap. + * If you use collections in resultMaps then cursor SQL queries must be ordered (resultOrdered="true") + * using the id columns of the resultMap. * * @author Guillaume Darmont / guillaume@dropinocean.com */ diff --git a/src/test/java/org/apache/ibatis/submitted/cursor_simple/Mapper.xml b/src/test/java/org/apache/ibatis/submitted/cursor_simple/Mapper.xml index dee2454284c..8789eecd0af 100644 --- a/src/test/java/org/apache/ibatis/submitted/cursor_simple/Mapper.xml +++ b/src/test/java/org/apache/ibatis/submitted/cursor_simple/Mapper.xml @@ -22,8 +22,8 @@ - + select * from users