mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 SqlServer 未处理字符串前面加N 的 bug;
This commit is contained in:
@ -59,8 +59,8 @@ namespace FreeSql.SqlServer
|
||||
foreach (var z in ie) sb.Append(",").Append(AddslashesProcessParam(z, mapType));
|
||||
return sb.Length == 0 ? "(NULL)" : sb.Remove(0, 1).Insert(0, "(").Append(")").ToString();
|
||||
}
|
||||
else if (param is string) return string.Concat("N'", param.ToString().Replace("'", "''"), "'");
|
||||
return string.Concat("'", param.ToString().Replace("'", "''"), "'");
|
||||
//if (param is string) return string.Concat('N', nparms[a]);
|
||||
}
|
||||
|
||||
protected override DbCommand CreateCommand()
|
||||
|
Reference in New Issue
Block a user