Skip to content

Commit

Permalink
add support for returning in sqlserver (#6585)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoLiberali authored Oct 10, 2023
1 parent 1b24081 commit 6bef318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" {
if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" {
return
}

Expand All @@ -233,7 +233,7 @@ func TestSoftDeleteReturning(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
}

Expand Down
4 changes: 2 additions & 2 deletions tests/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" {
if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" {
return
}

Expand Down

0 comments on commit 6bef318

Please sign in to comment.