mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	内部 ColumnInfo 调整
This commit is contained in:
		@@ -93,7 +93,7 @@ namespace FreeSql.Odbc.PostgreSQL
 | 
			
		||||
        {
 | 
			
		||||
            if (_table.Primarys.Length == 1)
 | 
			
		||||
            {
 | 
			
		||||
                sb.Append(_commonUtils.FormatSql("{0}", _table.Primarys.First().GetMapValue(d)));
 | 
			
		||||
                sb.Append(_commonUtils.FormatSql("{0}", _table.Primarys[0].GetDbValue(d)));
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            sb.Append("(");
 | 
			
		||||
@@ -101,7 +101,7 @@ namespace FreeSql.Odbc.PostgreSQL
 | 
			
		||||
            foreach (var pk in _table.Primarys)
 | 
			
		||||
            {
 | 
			
		||||
                if (pkidx > 0) sb.Append(" || '+' || ");
 | 
			
		||||
                sb.Append(_commonUtils.FormatSql("{0}", pk.GetMapValue(d))).Append("::text");
 | 
			
		||||
                sb.Append(_commonUtils.FormatSql("{0}", pk.GetDbValue(d))).Append("::text");
 | 
			
		||||
                ++pkidx;
 | 
			
		||||
            }
 | 
			
		||||
            sb.Append(")");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user