mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update exp to sql
This commit is contained in:
@@ -1179,6 +1179,14 @@ namespace SqlSugar
|
||||
}
|
||||
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}') ";
|
||||
}
|
||||
else if (IsSqlite() && formatString == "yyyy-MM-dd")
|
||||
|
Reference in New Issue
Block a user