- 修复 NoneParameter 无参对 byte[] 二进制拼接的 bug;#170

This commit is contained in:
28810
2019-12-27 13:57:19 +08:00
parent 14204d22a4
commit 9aee4ba4d6
16 changed files with 173 additions and 193 deletions

View File

@ -101,10 +101,7 @@ namespace FreeSql.Odbc.Dameng
var bytes = value as byte[];
var sb = new StringBuilder().Append("rawtohex('0x");
foreach (var vc in bytes)
{
if (vc < 10) sb.Append("0");
sb.Append(vc.ToString("X"));
}
sb.Append(vc.ToString("X").PadLeft(2, '0'));
return sb.Append("')").ToString();
}
return FormatSql("{0}", value, 1);