mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 完善 IUpdate.SetSource 组合主键的数据更新单元测试;
This commit is contained in:
		@@ -36,7 +36,7 @@ namespace FreeSql.Odbc.Default
 | 
			
		||||
            var pkidx = 0;
 | 
			
		||||
            foreach (var pk in _table.Primarys)
 | 
			
		||||
            {
 | 
			
		||||
                if (pkidx > 0) caseWhen.Append(", ");
 | 
			
		||||
                if (pkidx > 0) caseWhen.Append(" + '+' + ");
 | 
			
		||||
                caseWhen.Append(_utils.Adapter.CastSql(_commonUtils.QuoteReadColumn(pk.CsType, pk.Attribute.MapType, _commonUtils.QuoteSqlName(pk.Attribute.Name)), _utils.Adapter.MappingOdbcTypeVarChar));
 | 
			
		||||
                ++pkidx;
 | 
			
		||||
            }
 | 
			
		||||
@@ -53,7 +53,7 @@ namespace FreeSql.Odbc.Default
 | 
			
		||||
            var pkidx = 0;
 | 
			
		||||
            foreach (var pk in _table.Primarys)
 | 
			
		||||
            {
 | 
			
		||||
                if (pkidx > 0) sb.Append(", ");
 | 
			
		||||
                if (pkidx > 0) sb.Append(" + '+' + ");
 | 
			
		||||
                sb.Append(_utils.Adapter.CastSql(_commonUtils.FormatSql("{0}", pk.GetMapValue(d)), _utils.Adapter.MappingOdbcTypeVarChar));
 | 
			
		||||
                ++pkidx;
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user