You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by rg...@apache.org on 2005/11/20 19:32:21 UTC
svn commit: r345768 -
/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs
Author: rgrabowski
Date: Sun Nov 20 10:31:20 2005
New Revision: 345768
URL: http://svn.apache.org/viewcvs?rev=345768&view=rev
Log:
Fix for IBATISNET-124: test for valid selectKey property only if parameter object isn't a simple type (i.e. ignore value types, IDictionary, etc.).
Modified:
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs
Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs?rev=345768&r1=345767&r2=345768&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/SelectKey.cs Sun Nov 20 10:31:20 2005
@@ -121,7 +121,7 @@
// make sure the PropertyName is a valid settable property of the <insert> node's parameterClass
if (insertParameterClass != null &&
- configurationScope.TypeHandlerFactory.IsSimpleType(insertParameterClass) == false)
+ ObjectProbe.IsSimpleType(insertParameterClass) == false)
{
configurationScope.ErrorContext.MoreInfo = String.Format("Looking for settable property named '{0}' on type '{1}' for selectKey node of statement id '{2}'.",
PropertyName, // 0