Browse Source

增加对clickhouse数据库数据类型SimpleAggregateFunction的转换处理

pull/24/head^2
20521097 2 years ago
parent
commit
41e25fb7d0
  1. 3
      Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs

3
Src/Asp.NetCore2/SqlSugar/Utilities/UtilMethods.cs

@ -460,6 +460,9 @@ namespace SqlSugar
{
if (Regex.IsMatch(dbTypeName, @"\(.+\)"))
{
if (Regex.IsMatch(dbTypeName, @"SimpleAggregateFunction"))
dbTypeName = Regex.Match(dbTypeName, @"((?<=,\s)[^Nullable]\w+)|((?<=Nullable\()\w+)").Value;
else
dbTypeName = Regex.Replace(dbTypeName, @"\(.+\)", "");
}
dbTypeName = dbTypeName.Trim();

Loading…
Cancel
Save