mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 pgsql OnConflictDoUpdate 临时主键问题;#1393
This commit is contained in:
		@@ -109,6 +109,7 @@ namespace FreeSql.Odbc.PostgreSQL
 | 
			
		||||
            {
 | 
			
		||||
                sb.Append(") DO UPDATE SET\r\n");
 | 
			
		||||
 | 
			
		||||
                if (_pgsqlUpdate._tempPrimarys.Any() == false) _pgsqlUpdate._tempPrimarys = _tempPrimarys;
 | 
			
		||||
                var sbSetEmpty = _pgsqlUpdate.InternalSbSet.Length == 0;
 | 
			
		||||
                var sbSetIncrEmpty = _pgsqlUpdate.InternalSbSetIncr.Length == 0;
 | 
			
		||||
                if (sbSetEmpty == false || sbSetIncrEmpty == false)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user