mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 完善 MapType byte[] 对 Contains/Parse 表达式解析的处理;#178
This commit is contained in:
@ -41,7 +41,9 @@ namespace FreeSql.Oracle
|
||||
case "System.UInt16":
|
||||
case "System.UInt32":
|
||||
case "System.UInt64": return $"cast({getExp(operandExp)} as number)";
|
||||
case "System.Guid": return $"substr(to_char({getExp(operandExp)}), 1, 36)";
|
||||
case "System.Guid":
|
||||
if (tsc.mapType == typeof(byte[])) return $"hextoraw({getExp(operandExp)})";
|
||||
return $"to_char({getExp(operandExp)})";
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -68,7 +70,9 @@ namespace FreeSql.Oracle
|
||||
case "System.UInt16":
|
||||
case "System.UInt32":
|
||||
case "System.UInt64": return $"cast({getExp(callExp.Arguments[0])} as number)";
|
||||
case "System.Guid": return $"to_char({getExp(callExp.Arguments[0])})";
|
||||
case "System.Guid":
|
||||
if (tsc.mapType == typeof(byte[])) return $"hextoraw({getExp(callExp.Arguments[0])})";
|
||||
return $"to_char({getExp(callExp.Arguments[0])})";
|
||||
}
|
||||
return null;
|
||||
case "NewGuid":
|
||||
|
Reference in New Issue
Block a user