Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with the <generate> tag #28

Open
GoogleCodeExporter opened this issue Oct 24, 2015 · 0 comments
Open

Error with the <generate> tag #28

GoogleCodeExporter opened this issue Oct 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant