mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 Pgsql string[] 属性表达式 Contains 缺少类型转换的 SQL 语法错误;
This commit is contained in:
		@@ -135,7 +135,13 @@ namespace FreeSql.Odbc.PostgreSQL
 | 
			
		||||
                                if (left.StartsWith("(") || left.EndsWith(")"))
 | 
			
		||||
                                    return $"{right1} in {left}";
 | 
			
		||||
                                if (right1.StartsWith("(") || right1.EndsWith(")")) right1 = $"array[{right1.TrimStart('(').TrimEnd(')')}]";
 | 
			
		||||
                                return $"({left} @> array[{right1}])";
 | 
			
		||||
                                right1 = $"array[{right1}]";
 | 
			
		||||
                                if (objExp != null)
 | 
			
		||||
                                {
 | 
			
		||||
                                    var dbinfo = _common._orm.CodeFirst.GetDbInfo(objExp.Type);
 | 
			
		||||
                                    if (dbinfo.HasValue) right1 = $"{right1}::{dbinfo.Value.dbtype}";
 | 
			
		||||
                                }
 | 
			
		||||
                                return $"({left} @> {right1})";
 | 
			
		||||
                            case "Concat":
 | 
			
		||||
                                if (left.StartsWith("(") || left.EndsWith(")")) left = $"array[{left.TrimStart('(').TrimEnd(')')}]";
 | 
			
		||||
                                var right2 = getExp(callExp.Arguments[argIndex]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user