- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSupportedDialectorWithErrForeignKeyViolated (0.2 sec)
-
tests/error_translator_test.go
} err = db.Create(&City{Name: "Kabul"}).Error if !errors.Is(err, gorm.ErrDuplicatedKey) { t.Fatalf("expected err: %v got err: %v", gorm.ErrDuplicatedKey, err) } } func TestSupportedDialectorWithErrForeignKeyViolated(t *testing.T) { tidbSkip(t, "not support the foreign key feature") type City struct { gorm.Model Name string `gorm:"unique"` } type Museum struct { gorm.Model
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 12 13:21:22 UTC 2023 - 3.1K bytes - Viewed (0)