add support for returning in sqlserver (#6585)
This commit is contained in:
		
							parent
							
								
									1b24081010
								
							
						
					
					
						commit
						6bef318891
					
				| @ -206,9 +206,9 @@ func TestDeleteSliceWithAssociations(t *testing.T) { | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // only sqlite, postgres support returning
 | // only sqlite, postgres, sqlserver support returning
 | ||||||
| func TestSoftDeleteReturning(t *testing.T) { | func TestSoftDeleteReturning(t *testing.T) { | ||||||
| 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" { | 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| @ -233,7 +233,7 @@ func TestSoftDeleteReturning(t *testing.T) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func TestDeleteReturning(t *testing.T) { | func TestDeleteReturning(t *testing.T) { | ||||||
| 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" { | 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -765,9 +765,9 @@ func TestSaveWithPrimaryValue(t *testing.T) { | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // only sqlite, postgres support returning
 | // only sqlite, postgres, sqlserver support returning
 | ||||||
| func TestUpdateReturning(t *testing.T) { | func TestUpdateReturning(t *testing.T) { | ||||||
| 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" { | 	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Franco Liberali
						Franco Liberali