Author: roberto
Date: Thu Mar 30 22:21:15 2006
New Revision: 390340

URL: http://svn.apache.org/viewcvs?rev=390340&view=rev
Log:
~Updating DataMapper PreparedStatementFactory.CreateParametersForTextCommand() 
method.  Small fix since OracleClient and some other providers do not use a 
parameter prefix in parameter names unlike SqlClient.  This led to an 
off-by-one error since DbParameters is now an array.

Modified:
    
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs

Modified: 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs
URL: 
http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs?rev=390340&r1=390339&r2=390340&view=diff
==============================================================================
--- 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs
 (original)
+++ 
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs
 Thu Mar 30 22:21:15 2006
@@ -222,7 +222,7 @@
                                }
                                else
                                {
-                                       sqlParamName = "param" + i++;
+                                       sqlParamName = "param" + i;
                                }
 
                                IDataParameter dataParameter = 
_session.CreateCommand(_statement.CommandType).CreateParameter();


Reply via email to