mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
Update exp to sql
This commit is contained in:
parent
64319b2407
commit
307c461cf7
@ -989,7 +989,11 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public string GeDateFormat(string formatString, string value)
|
public string GeDateFormat(string formatString, string value)
|
||||||
{
|
{
|
||||||
if (IsOracle() || IsPg())
|
if (IsOracle() && formatString == "yyyy-MM-dd HH:mm:ss")
|
||||||
|
{
|
||||||
|
return $"to_char({value},'yyyy-MM-dd HH:mi:ss') ";
|
||||||
|
}
|
||||||
|
else if (IsOracle() || IsPg())
|
||||||
{
|
{
|
||||||
return $"to_char({value},'{formatString}') ";
|
return $"to_char({value},'{formatString}') ";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user