You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2006/06/21 21:01:23 UTC

svn commit: r416071 - /ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs

Author: gbayon
Date: Wed Jun 21 12:01:23 2006
New Revision: 416071

URL: http://svn.apache.org/viewvc?rev=416071&view=rev
Log:
- Fixed log message

Modified:
    ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs

Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs?rev=416071&r1=416070&r2=416071&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs Wed Jun 21 12:01:23 2006
@@ -100,7 +100,16 @@
 			StringCollection properties = request.PreparedStatement.DbParametersName;
 			IDataParameter[] parameters = request.PreparedStatement.DbParameters;
 
+            #region Logging
+            if (_logger.IsDebugEnabled)
+            {
+                _paramLogList.Remove(0, _paramLogList.Length);
+                _typeLogList.Remove(0, _typeLogList.Length);
+            }
+            #endregion
+            
 			int count = properties.Count;
+
             for ( int i = 0; i < count; ++i )
 			{
 				IDataParameter sqlParameter = parameters[i];
@@ -110,9 +119,6 @@
 				#region Logging
 				if (_logger.IsDebugEnabled)
 				{
-                    _paramLogList.Remove(0, _paramLogList.Length);
-                    _typeLogList.Remove(0, _typeLogList.Length);
-
                     _paramLogList.Append(sqlParameter.ParameterName);
                     _paramLogList.Append("=[");
                     _typeLogList.Append(sqlParameter.ParameterName);