mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 完善 MapType byte[] 对 Contains/Parse 表达式解析的处理;#178
This commit is contained in:
		@@ -41,7 +41,9 @@ namespace FreeSql.Odbc.Dameng
 | 
			
		||||
                            case "System.UInt16":
 | 
			
		||||
                            case "System.UInt32":
 | 
			
		||||
                            case "System.UInt64": return $"cast({getExp(operandExp)} as number)";
 | 
			
		||||
                            case "System.Guid": return $"to_char({getExp(operandExp)})";
 | 
			
		||||
                            case "System.Guid":
 | 
			
		||||
                                if (tsc.mapType == typeof(byte[])) return $"hextoraw({getExp(operandExp)})";
 | 
			
		||||
                                return $"to_char({getExp(operandExp)})";
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    break;
 | 
			
		||||
@@ -68,7 +70,9 @@ namespace FreeSql.Odbc.Dameng
 | 
			
		||||
                                case "System.UInt16":
 | 
			
		||||
                                case "System.UInt32":
 | 
			
		||||
                                case "System.UInt64": return $"cast({getExp(callExp.Arguments[0])} as number)";
 | 
			
		||||
                                case "System.Guid": return $"substr(to_char({getExp(callExp.Arguments[0])}), 1, 36)";
 | 
			
		||||
                                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