Update TDengineCore

This commit is contained in:
sunkaixuan
2023-12-23 17:24:12 +08:00
parent cbbbfc049f
commit f45d607deb
4 changed files with 57 additions and 12 deletions

View File

@@ -254,7 +254,7 @@ namespace SqlSugar.TDengine
public override string ToDateShort(MethodCallExpressionModel model)
{
var parameter = model.Args[0];
return string.Format(" SUBSTR(TO_ISO8601({0}),1,10) ", parameter.MemberName);
return string.Format(" CAST( SUBSTR(TO_ISO8601({0}),1,10) AS timestamp)", parameter.MemberName);
}
public override string DateAddByType(MethodCallExpressionModel model)
{