mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-29 05:10:10 +08:00
Fixed crash with DbString parameter list on Oracle
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user