mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
1.this?.Context?.Case 不等于判断
2.OceanBaseForOracle和TDSQLForODBC重写Case
This commit is contained in:
@@ -16,6 +16,7 @@ namespace SqlSugar.OceanBaseForOracle
|
|||||||
public OceanBaseForOracleExpressionContext()
|
public OceanBaseForOracleExpressionContext()
|
||||||
{
|
{
|
||||||
base.DbMehtods = new OceanBaseForOracleMethod();
|
base.DbMehtods = new OceanBaseForOracleMethod();
|
||||||
|
base.Case = new ExpressionContextCase();
|
||||||
}
|
}
|
||||||
public override string SqlParameterKeyWord
|
public override string SqlParameterKeyWord
|
||||||
{
|
{
|
||||||
@@ -76,7 +77,7 @@ namespace SqlSugar.OceanBaseForOracle
|
|||||||
public override string GetLimit()
|
public override string GetLimit()
|
||||||
{
|
{
|
||||||
int num = 1;
|
int num = 1;
|
||||||
if (this.Case?.Num != 1)
|
if (this.Case?.Num > 1)
|
||||||
{
|
{
|
||||||
num = this.Case.Num;
|
num = this.Case.Num;
|
||||||
}
|
}
|
||||||
|
@@ -8,6 +8,7 @@ namespace SqlSugar.TDSQLForPGODBC
|
|||||||
public TDSQLForPGODBCExpressionContext()
|
public TDSQLForPGODBCExpressionContext()
|
||||||
{
|
{
|
||||||
base.DbMehtods = new TDSQLForPGODBCMethod();
|
base.DbMehtods = new TDSQLForPGODBCMethod();
|
||||||
|
base.Case = new ExpressionContextCase();
|
||||||
}
|
}
|
||||||
public override string SqlTranslationLeft
|
public override string SqlTranslationLeft
|
||||||
{
|
{
|
||||||
@@ -134,7 +135,7 @@ namespace SqlSugar.TDSQLForPGODBC
|
|||||||
public override string GetLimit()
|
public override string GetLimit()
|
||||||
{
|
{
|
||||||
int num = 1;
|
int num = 1;
|
||||||
if (this.Case.Num != 1)
|
if (this.Case.Num > 1)
|
||||||
{
|
{
|
||||||
num = this.Case.Num;
|
num = this.Case.Num;
|
||||||
}
|
}
|
||||||
|
@@ -82,12 +82,9 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (this.Context.GetLimit() != null)
|
else if (this.Context.GetLimit() != null)
|
||||||
{
|
{
|
||||||
if (this?.Context?.Case?.HasWhere == true)
|
if (this?.Context?.Case != null)
|
||||||
{
|
{
|
||||||
this.Context.Case.HasWhere = this.HasWhere;
|
this.Context.Case.HasWhere = this.HasWhere;
|
||||||
}
|
|
||||||
if (this?.Context?.Case?.Num != 1)
|
|
||||||
{
|
|
||||||
this.Context.Case.Num = num;
|
this.Context.Case.Num = num;
|
||||||
}
|
}
|
||||||
return this.Context.GetLimit();
|
return this.Context.GetLimit();
|
||||||
|
@@ -67,7 +67,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else if (this.Context.GetLimit()!=null)
|
else if (this.Context.GetLimit()!=null)
|
||||||
{
|
{
|
||||||
if (this?.Context?.Case?.HasWhere == true)
|
if (this?.Context?.Case != null)
|
||||||
{
|
{
|
||||||
this.Context.Case.HasWhere = this.HasWhere;
|
this.Context.Case.HasWhere = this.HasWhere;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user