- continue

This commit is contained in:
2881099
2024-08-08 20:42:56 +08:00
parent 5ad0fd8b75
commit ffc6831bbd
17 changed files with 8 additions and 102 deletions

View File

@ -92,11 +92,6 @@ namespace FreeSql.Odbc.SqlServer
if (value == null) return "NULL";
if (type.IsNumberType()) return string.Format(CultureInfo.InvariantCulture, "{0}", value);
if (type == typeof(byte[])) return $"0x{CommonUtils.BytesSqlRaw(value as byte[])}";
if (type == typeof(TimeSpan) || type == typeof(TimeSpan?))
{
var ts = (TimeSpan)value;
value = $"{ts.Hours}:{ts.Minutes}:{ts.Seconds}.{ts.Milliseconds}";
}
return string.Format(CultureInfo.InvariantCulture, "{0}", (_orm.Ado as AdoProvider).AddslashesProcessParam(value, type, col));
}
}