mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update 人大金仓 PartitionByValue
This commit is contained in:
@@ -51,9 +51,16 @@ namespace SqlSugar
|
||||
public override string ToSqlString()
|
||||
{
|
||||
if (PartitionByValue.HasValue())
|
||||
{
|
||||
if (this.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer)
|
||||
{
|
||||
return base.ToSqlString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return base.ToSqlString().Replace(" GetDate() ", " NOW() ");
|
||||
}
|
||||
}
|
||||
base.AppendFilter();
|
||||
string oldOrderValue = this.OrderByValue;
|
||||
var isNullOrderValue = Skip == 0 && Take == 1 && oldOrderValue == "ORDER BY NOW() ";
|
||||
|
||||
Reference in New Issue
Block a user