测试ClickHouse Bool映射插入

This commit is contained in:
d4ilys
2023-11-21 09:39:34 +08:00
parent dc73a1571a
commit 3528c01c5b
3 changed files with 94 additions and 2 deletions

View File

@ -43,8 +43,9 @@ namespace FreeSql.ClickHouse
if (col.DbScale != 0) ret.Scale = col.DbScale;
break;
}
if (value is bool)
ret.Value = (bool)value ? 1 : 0;
//直接使用Bool
//if (value is bool)
// ret.Value = (bool)value ? 1 : 0;
}
_params?.Add(ret);
return ret;