[ 
http://issues.apache.org/jira/browse/IBATIS-230?page=comments#action_12367278 ] 

Sven Boden commented on IBATIS-230:
-----------------------------------

This is also something I would like to fix around the end of the week, if no 
complaints:

When you have 2 <sql> includes in an SqlMap with the same id you currently 
don't get an error message, and the last one takes precedence. This can lead to 
some unexpected results. i would like to throw an exception on duplicate id's.

The exception would be different behaviour as currently is the case, but if 
someone would be using "duplicate" <sql> they would see it the moment they 
start up with the changes, and it requires only SqlMap changes to fix it, no 
application source code changes.

> Warn when two ids of a <sql> tag are identical
> ----------------------------------------------
>
>          Key: IBATIS-230
>          URL: http://issues.apache.org/jira/browse/IBATIS-230
>      Project: iBatis for Java
>         Type: Improvement
>   Components: SQL Maps
>     Versions: 2.1.6
>  Environment: Windows XP, JDK 1.4.2, Eclipse 3.1
>     Reporter: Thomas Noirez
>     Priority: Minor
>  Attachments: SqlMapParser.java
>
> When they are two <sql> tags with the same id, the last read is the one !
> but may be a warning will be usefull to say that id already exists...

-- 
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

Reply via email to