mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update exp to sql
This commit is contained in:
@@ -1179,6 +1179,14 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (IsOracle() || IsPg())
|
else if (IsOracle() || IsPg())
|
||||||
{
|
{
|
||||||
|
if (formatString.HasValue()&&formatString.Contains("hh:mm"))
|
||||||
|
{
|
||||||
|
formatString = formatString.Replace("hh:mm", "hh:mi");
|
||||||
|
}
|
||||||
|
else if (formatString.HasValue() && formatString.Contains("hhmm"))
|
||||||
|
{
|
||||||
|
formatString = formatString.Replace("hhmm", "hhmi");
|
||||||
|
}
|
||||||
return $"to_char({value},'{formatString}') ";
|
return $"to_char({value},'{formatString}') ";
|
||||||
}
|
}
|
||||||
else if (IsSqlite() && formatString == "yyyy-MM-dd")
|
else if (IsSqlite() && formatString == "yyyy-MM-dd")
|
||||||
|
|||||||
Reference in New Issue
Block a user