[ http://issues.apache.org/jira/browse/IBATIS-26?page=history ]
Clinton Begin closed IBATIS-26:
-------------------------------
Assign To: Clinton Begin
Resolution: Fixed
Fix Version: 2.0.9
all added as of 2.0.9
> Support for dynamic result maps
> -------------------------------
>
> Key: IBATIS-26
> URL: http://issues.apache.org/jira/browse/IBATIS-26
> Project: iBatis for Java
> Type: Improvement
> Components: SQL Maps
> Reporter: Philippe Laflamme
> Assignee: Clinton Begin
> Fix For: 2.0.9
>
> SQLMap statements allow for dynamic select clauses, but currently, it is
> impossible to create dynamic result maps. For example:
> <select id="dynamicSelect" parameterClass="java.util.Map"
> resultClass="java.util.HashMap">
> SELECT
> <isPropertyAvailable property="countQuery">
> count(*)
> </isPropertyAvailable>
> <isNotPropertyAvailable property="countQuery">
> A, B, C
> </isNotPropertyAvailable>
> FROM [...]
> </select>
> This construct is legal, but will break upon execution.
> It seems odd to have the ability to create dynamic select statements but not
> have the ability to actually use them (without polluting the statement with
> "NULL AS"). This issue is bound to come up often...
--
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