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

This commit is contained in:
20521097 2022-10-28 15:53:20 +08:00
parent b0be692155
commit 41e25fb7d0

View File

@ -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();