You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Anonymous Alcohol (JIRA)" <ib...@incubator.apache.org> on 2008/05/19 20:17:55 UTC

[jira] Created: (IBATISNET-265) generate for update is wrong

generate for update is wrong
----------------------------

                 Key: IBATISNET-265
                 URL: https://issues.apache.org/jira/browse/IBATISNET-265
             Project: iBatis for .NET
          Issue Type: Bug
          Components: DataMapper
    Affects Versions: DataMapper 1.6.1
         Environment: All environments
            Reporter: Anonymous Alcohol


When using ibatis to generate an update statement it ignores fields that is in the by field.

example:
Tablename
Test
Fields
TestID
est

add parametermap

use <generate table="Test" by="TestID"/>

then execute an update


Error is in:
IBatisNet.DataMapper.Configuration.Statements.SqlGenerator.BuildUpdateQuery
line
210

possible sollution:
if (update.Generate.By.ToLower() != property.ColumnName.ToLower()) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.