Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
DataMapper 1.6.1
-
None
-
None
-
All environments
Description
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 (Array.BinarySearch(keysList, property.ColumnName) < 0)