1.ExpressionContextCase增加Num属性,用于传递跳过的数据数量。

2.OcaenBaseForOracle 重写 GetLimit,使其支持子查询。
3.TDSQLForPGODBC 重写 GetLimit,使其支持子查询。
4.getMyInt和getMyIntNull,获取数据方式改成GetDecimal,只有OcaenBaseForOracle 使用这两个方法,这是为了支持OcaenBaseForOracle 驱动2.0.9以上,请更新驱动到2.0.9以上
This commit is contained in:
guoshun.du
2025-09-09 19:24:19 +08:00
parent 96a670465c
commit 81eb7a5a3f
6 changed files with 32 additions and 3 deletions

View File

@@ -72,6 +72,16 @@ namespace SqlSugar.OceanBaseForOracle
}
}
}
public override string GetLimit()
{
int num = 1;
if (this.Case?.Num != 1)
{
num = this.Case.Num;
}
return (this.Case?.HasWhere == true ? "AND" : "WHERE") + " ROWNUM=" + num;
}
}
public partial class OceanBaseForOracleMethod : DefaultDbMethod, IDbMethods
{