Synchronization code

This commit is contained in:
sunkaixuan
2023-04-24 21:57:40 +08:00
parent c6d8ff1d4e
commit bd0ed9addc

View File

@@ -20,6 +20,7 @@ namespace SqlSugar
}
else if (IsOracle() || IsPg())
{
formatString = formatString.Replace("HH", "hh24");
if (formatString.HasValue() && formatString.Contains("hh:mm"))
{
formatString = formatString.Replace("hh:mm", "hh:mi");
@@ -234,7 +235,8 @@ namespace SqlSugar
}
private bool IsPg()
{
return this.Context is PostgreSQLExpressionContext;
return this.Context is PostgreSQLExpressionContext
||this.Context is KdbndpExpressionContext;
}
private bool IsOracle()
{