Fixed crash with DbString parameter list on Oracle

This commit is contained in:
Mauro Cerutti
2013-12-17 14:33:37 +01:00
parent 885a8d46cb
commit ec57d85ece
+2 -2
View File
@@ -1789,7 +1789,6 @@ this IDbConnection cnn, string sql, Func<TFirst, TSecond, TThird, TFourth, TRetu
count++;
var listParam = command.CreateParameter();
listParam.ParameterName = namePrefix + count;
listParam.Value = item ?? DBNull.Value;
if (isString)
{
listParam.Size = 4000;
@@ -1805,6 +1804,7 @@ this IDbConnection cnn, string sql, Func<TFirst, TSecond, TThird, TFourth, TRetu
}
else
{
listParam.Value = item ?? DBNull.Value;
command.Parameters.Add(listParam);
}
}
@@ -3610,4 +3610,4 @@ string name, object value = null, DbType? dbType = null, ParameterDirection? dir
#endif
}
}