完成 oracle CURD测试,表达式适配和测试

This commit is contained in:
28810
2019-01-07 21:27:09 +08:00
parent b72d4abfb8
commit dd6c0052f6
25 changed files with 3108 additions and 310 deletions

View File

@ -434,6 +434,7 @@ namespace FreeSql.Internal {
}
if (right == "NULL") tryoper = tryoper == "=" ? " IS " : " IS NOT ";
if (tryoper == "+" && (expBinary.Left.Type.FullName == "System.String" || expBinary.Right.Type.FullName == "System.String")) return _common.StringConcat(left, right, expBinary.Left.Type, expBinary.Right.Type);
if (tryoper == "%") return _common.Mod(left, right, expBinary.Left.Type, expBinary.Right.Type);
return $"{left} {tryoper} {right}";
}

View File

@ -17,6 +17,7 @@ namespace FreeSql.Internal {
internal abstract string QuoteParamterName(string name);
internal abstract string IsNull(string sql, object value);
internal abstract string StringConcat(string left, string right, Type leftType, Type rightType);
internal abstract string Mod(string left, string right, Type leftType, Type rightType);
internal abstract string QuoteWriteParamter(Type type, string paramterName);
internal abstract string QuoteReadColumn(Type type, string columnName);