Commit bf6404f5 authored by Nick Craver's avatar Nick Craver

Merge #207 into latest master

parents c2ed1f40 adf39686
......@@ -2795,6 +2795,8 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj
bool isString = value is IEnumerable<string>;
bool isDbString = value is IEnumerable<DbString>;
DbType dbType = 0;
if (list != null)
{
foreach (var item in list)
{
if (count++ == 0)
......@@ -2807,7 +2809,7 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj
if (isString)
{
listParam.Size = DbString.DefaultLength;
if (item != null && ((string)item).Length > DbString.DefaultLength)
if (item != null && ((string) item).Length > DbString.DefaultLength)
{
listParam.Size = -1;
}
......@@ -2827,6 +2829,7 @@ public static void PackListParameters(IDbCommand command, string namePrefix, obj
command.Parameters.Add(listParam);
}
}
}
var regexIncludingUnknown = @"([?@:]" + Regex.Escape(namePrefix) + @")(?!\w)(\s+(?i)unknown(?-i))?";
if (count == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment