- 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

@ -130,12 +130,7 @@ namespace FreeSql.Odbc.PostgreSQL
value = getParamterValue(type, value);
var type2 = value.GetType();
if (type2 == typeof(byte[])) return $"'\\x{CommonUtils.BytesSqlRaw(value as byte[])}'";
if (type2 == typeof(TimeSpan) || type2 == typeof(TimeSpan?))
{
var ts = (TimeSpan)value;
return $"'{Math.Min(24, (int)Math.Floor(ts.TotalHours))}:{ts.Minutes}:{ts.Seconds}'";
}
else if (value is Array)
if (value is Array)
{
var valueArr = value as Array;
var eleType = type2.GetElementType();