You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ro...@apache.org on 2006/03/31 08:21:29 UTC

svn commit: r390340 - /ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Statements/PreparedStatementFactory.cs

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();