emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

Dynamic SQL corrections in User Guide #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
3.0.1

Please describe the problem.
On pages 45 and 46 of the user guide for MyBatis 3, there are a few examples of 
dynamic SQL in which there are conditional expressions referencing an author 
variable, but the SQL snippets reference the "title" column.  Here's an example:

<if test=”author != null and author.name != null”>
  AND title like #{author.name}
</if>

Not a huge problem, obviously, but it could be confusing.

Original issue reported on code.google.com by mpass...@yahoo.com on 16 Aug 2010 at 7:04

GoogleCodeExporter commented 9 years ago
Fixed in SVN.  Thanks!

Original comment by jeffgbut...@gmail.com on 5 Jan 2011 at 2:00