mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-04 21:02:26 +08:00
完成 oracle CURD测试,表达式适配和测试
This commit is contained in:
@ -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}";
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user