- 优化 表达式对整数除法的处理,解析为整除;

This commit is contained in:
28810
2019-09-06 14:48:37 +08:00
parent d51aef2aa9
commit d105041858
15 changed files with 110 additions and 7 deletions

View File

@ -126,6 +126,7 @@ namespace FreeSql.PostgreSQL
public override string IsNull(string sql, object value) => $"coalesce({sql}, {value})";
public override string StringConcat(string[] objs, Type[] types) => $"{string.Join(" || ", objs)}";
public override string Mod(string left, string right, Type leftType, Type rightType) => $"{left} % {right}";
public override string Div(string left, string right, Type leftType, Type rightType) => $"{left} / {right}";
public override string QuoteWriteParamter(Type type, string paramterName) => paramterName;
public override string QuoteReadColumn(Type type, string columnName) => columnName;