Revision: 5924
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5924&view=rev
Author: fabiomaulo
Date: 2011-06-13 16:01:13 +0000 (Mon, 13 Jun 2011)
Log Message:
-----------
Minor (added note)
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Param/ParametersBackTrackExtensions.cs
Modified: trunk/nhibernate/src/NHibernate/Param/ParametersBackTrackExtensions.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Param/ParametersBackTrackExtensions.cs 2011-06-13 15:32:42 UTC (rev 5923)
+++ trunk/nhibernate/src/NHibernate/Param/ParametersBackTrackExtensions.cs 2011-06-13 16:01:13 UTC (rev 5924)
@@ -22,6 +22,8 @@
public static SqlType[] GetQueryParameterTypes(this IEnumerable<IParameterSpecification> parameterSpecs, List<Parameter> sqlQueryParametersList, ISessionFactoryImplementor factory)
{
+ // NOTE: if you have a NullReferenceException probably is because the IParameterSpecification does not have the ExpectedType; use ResetEffectiveExpectedType before call this method.
+
// due to IType.NullSafeSet(System.Data.IDbCommand , object, int, ISessionImplementor) the SqlType[] is supposed to be in a certain sequence.
// here we can check and evetually Assert (see AssertionFailure) the supposition because each individual Parameter has its BackTrackId.
// Currently we just take the first BackTrackId of each IParameterSpecification
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|