Update 人大金仓

This commit is contained in:
sunkaixuan 2024-07-04 18:37:06 +08:00
parent 156b460076
commit e04cedfba5
2 changed files with 9 additions and 0 deletions

View File

@ -809,6 +809,7 @@ namespace SqlSugar
MemberValue= "100000",
});
}
model.Conext = this.Context;
return this.Context.DbMehtods.Substring(model);
case "Replace":
return this.Context.DbMehtods.Replace(model);

View File

@ -167,6 +167,14 @@ namespace SqlSugar
}
return string.Format("( CASE WHEN {0} THEN {1} ELSE {2} END )", parameter.MemberName, parameter2.MemberName, parameter3.MemberName);
}
public override string Substring(MethodCallExpressionModel model)
{
if (model?.Conext?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.MySql)
{
return base.Substring(model).Replace(" + ", " operator(pg_catalog.+) ");
}
return base.Substring(model);
}
public override string DateValue(MethodCallExpressionModel model)
{
var parameter = model.Args[0];