Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
[deleted comment]
Original comment by eduardo.macarron
on 25 Feb 2013 at 3:57
Should be fixed in the snapshot. Could you try it?
Original comment by eduardo.macarron
on 25 Feb 2013 at 7:41
[deleted comment]
[deleted comment]
The latest snapshot works. I downloaded MyBatis 3.2.1-SNAPSHOT from GitHub and
ran my tests. Thanks!
Original comment by mgb...@gmail.com
on 27 Feb 2013 at 9:16
Original comment by eduardo.macarron
on 6 Mar 2013 at 3:12
It's reproducible in release 3.2.8.
Works
@Select("<script>SELECT COUNT(*) FROM MY_TABLE WHERE ID <> #{id}</script>"
Doesn't work
@Select("<script>SELECT COUNT(*) FROM MY_TABLE WHERE ID <> #{id}</script>"
Original comment by mykhailo...@gmail.com
on 26 Jan 2015 at 4:35
The difference is that you are including <script> element that makes MyBatis to
handle the String as an XML and parse and execute any dynamic element <if>
<where> etc..
So. That is exactly the expected behaviour.
Original comment by eduardo.macarron
on 26 Jan 2015 at 8:29
Original issue reported on code.google.com by
mgb...@gmail.com
on 25 Feb 2013 at 11:30