- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ErrInvalidValue (0.13 sec)
-
association.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 21.5K bytes - Viewed (0) -
tests/hooks_test.go
} if beforeUpdateCall != 1 { t.Fatalf("before update should be called") } err = DB.Model(Product5{}).Where("id", p.ID).Update("name", "update_name_2").Error if !errors.Is(err, gorm.ErrInvalidValue) { t.Fatalf("should got RecordNotFound, but got %v", err) } if beforeUpdateCall != 1 { t.Fatalf("before update should not be called") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0) -
tests/create_test.go
} } func TestCreateNilPointer(t *testing.T) { var user *User err := DB.Create(user).Error if err == nil || err != gorm.ErrInvalidValue { t.Fatalf("it is not ErrInvalidValue") } } func TestFirstOrCreateRowsAffected(t *testing.T) { user := User{Name: "TestFirstOrCreateRowsAffected"} res := DB.FirstOrCreate(&user, "name = ?", user.Name)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0) -
statement.go
} } else { stmt.AddError(field.Set(stmt.Context, stmt.ReflectValue.Index(stmt.CurDestIndex), value)) } case reflect.Struct: if !stmt.ReflectValue.CanAddr() { stmt.AddError(ErrInvalidValue) return } stmt.AddError(field.Set(stmt.Context, stmt.ReflectValue, value)) } } else { stmt.AddError(ErrInvalidField) } } else { stmt.AddError(ErrInvalidField)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 24 09:42:59 UTC 2024 - 19.9K bytes - Viewed (0)