mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-05 13:17:57 +08:00
Update oracle pgsql ToString format
This commit is contained in:
parent
f9221f173c
commit
c6d8ff1d4e
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user