mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 增加 IsVersion 对 byte[] 的支持;#548
This commit is contained in:
		@@ -125,7 +125,7 @@ namespace FreeSql.PostgreSQL.Curd
 | 
			
		||||
 | 
			
		||||
                        if (colidx > 0) sb.Append(", \r\n");
 | 
			
		||||
 | 
			
		||||
                        if (col.Attribute.IsVersion == true)
 | 
			
		||||
                        if (col.Attribute.IsVersion == true && col.Attribute.MapType != typeof(byte[]))
 | 
			
		||||
                        {
 | 
			
		||||
                            var field = _pgsqlInsert.InternalCommonUtils.QuoteSqlName(col.Attribute.Name);
 | 
			
		||||
                            sb.Append(field).Append(" = ").Append(_pgsqlInsert.InternalCommonUtils.QuoteSqlName(_pgsqlInsert.InternalTable.DbName)).Append(".").Append(field).Append(" + 1");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user