Clickhouse Array泛型插入测试

This commit is contained in:
d4ilys
2023-11-21 11:40:22 +08:00
parent 322332cf73
commit d91c7fbdfd
4 changed files with 37 additions and 3 deletions

View File

@ -146,7 +146,7 @@ namespace FreeSql.ClickHouse
}
public override string GetNoneParamaterSqlValue(List<DbParameter> specialParams, string specialParamFlag, ColumnInfo col, Type type, object value)
{
{
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[])}";