mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
修复数据类型sbyte对应clickhouse Int8的错误
This commit is contained in:
@@ -133,6 +133,10 @@ namespace SqlSugar.ClickHouse
|
||||
param.Value = Guid.Empty;
|
||||
}
|
||||
}
|
||||
if (dbtype.ObjToString() == System.Data.DbType.SByte.ToString())
|
||||
{
|
||||
dbtype = ClickHouseDbBind.MappingTypesConst.First(it => it.Value == CSharpDataType.@sbyte).Key;
|
||||
}
|
||||
if (param.Value!=null&¶m.Value!=DBNull.Value&&dbtype.ObjToString() == System.Data.DbType.Boolean.ToString())
|
||||
{
|
||||
sql = sql.Replace(param.ParameterName, param.Value.ObjToBool()?"1":"0");
|
||||
|
@@ -67,8 +67,8 @@ namespace SqlSugar.ClickHouse
|
||||
new KeyValuePair<string, CSharpDataType>("UInt32",CSharpDataType.@int),
|
||||
new KeyValuePair<string, CSharpDataType>("UInt16",CSharpDataType.@short),
|
||||
new KeyValuePair<string, CSharpDataType>("UInt64",CSharpDataType.@long),
|
||||
new KeyValuePair<string, CSharpDataType>("Int8",CSharpDataType.@int),
|
||||
new KeyValuePair<string, CSharpDataType>("UInt8",CSharpDataType.@int),
|
||||
new KeyValuePair<string, CSharpDataType>("Int8",CSharpDataType.@sbyte),
|
||||
new KeyValuePair<string, CSharpDataType>("UInt8",CSharpDataType.@byte),
|
||||
new KeyValuePair<string, CSharpDataType>("Decimal(38,19)",CSharpDataType.@decimal),
|
||||
new KeyValuePair<string, CSharpDataType>("Decimal",CSharpDataType.@decimal),
|
||||
new KeyValuePair<string, CSharpDataType>("Decimal32",CSharpDataType.@decimal),
|
||||
|
Reference in New Issue
Block a user