Author: gbayon
Date: Fri Oct 14 12:34:26 2005
New Revision: 321194

URL: http://svn.apache.org/viewcvs?rev=321194&view=rev
Log:
- Fixed IBATISNET-120

Modified:
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs?rev=321194&r1=321193&r2=321194&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs 
(original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/DomSqlMapBuilder.cs 
Fri Oct 14 12:34:26 2005
@@ -770,11 +770,13 @@
                                } 
                                catch (Exception e) 
                                {
+                                       NameValueCollection prop = 
NodeUtils.ParseAttributes(xmlNode, _configScope.Properties);
+
                                        throw new ConfigurationException(
                                                String.Format("Error 
registering TypeHandler class \"{0}\" for handling .Net type \"{1}\" and dbType 
\"{2}\". Cause: {3}", 
-                                               
xmlNode.Attributes["callback"].Value,
-                                               
xmlNode.Attributes["type"].Value,
-                                               
xmlNode.Attributes["dbType"].Value,
+                                               
NodeUtils.GetStringAttribute(prop, "callback"),
+                                               
NodeUtils.GetStringAttribute(prop, "type"),
+                                               
NodeUtils.GetStringAttribute(prop, "dbType"),
                                                e.Message), e);
                                }
                        }

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs?rev=321194&r1=321193&r2=321194&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs 
(original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs 
Fri Oct 14 12:34:26 2005
@@ -197,7 +197,7 @@
                        }
                        if (dbType==null)
                        {
-                               map.Add(NULL, handler);
+                               map[NULL] = handler;
                        }
                        else
                        {


Reply via email to