Update exp to sql

This commit is contained in:
sunkaixuna
2021-12-23 11:29:49 +08:00
parent 660bb63c80
commit 939eaa313f

View File

@@ -914,7 +914,7 @@ namespace SqlSugar
{
return $"CONVERT(varchar(100),convert(datetime,{value}), 121)";
}
else if (formatString!=null&& formatString.IsInt())
else if (IsSqlServer()&&formatString!=null&& formatString.IsInt())
{
return string.Format("CONVERT(varchar(100),convert(datetime,{0}), {1})", value, formatString);
}