jerry0597 / mybatisnet

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

Error with the <generate> tag #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the MyBatis.NET are you using?
1.6.2 DataMapper and 1.9.2 DataAccess

Please describe the problem.  Unit tests are best!
When I use the <generate> tag in my update statement.Mybatis generate the wrong 
sql.

The log:
2011-03-17 15:11:24,802 [5700] DEBUG 
IBatisNet.DataMapper.Configuration.Statements.PreparedStatementFactory [(null)] 
- Statement Id: [updateWorkLoad] Prepared SQL: [UPDATE  WorkLoad SET    ProjectId 
=  ?param0, Content =  ?param1, FillDate =  ?param2,    FillPersonId =  
?param3,    FillPersonName =  ?param4,  FillPersonDepartmentId =  ?param5 
    FillPersonDepartmentName =  ?param6  WHERE   Sid =  ?param7]

It miss a "," before "FillPersonDepartmentName".And every update statement is 
not correct.

What is the expected output? What do you see instead?

Please provide any additional information below.
I have upload the sqlmap file.

Original issue reported on code.google.com by languanhao on 17 Mar 2011 at 7:29

Attachments: