Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for changed (1.69 sec)

  1. tests/hooks_test.go

    	}
    
    	// Code not changed, price should not change
    	DB.Model(&product).Updates(map[string]interface{}{"Name": "Product New"})
    
    	if product.Name != "Product New" || product.Price != 160 || product.Code != "L1212" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, but not selected, price should not change
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    		c.connChange.L.Unlock()
    		// Happy path.
    		return nil
    	}
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	changed := make(chan State, 1)
    	go func() {
    		defer xioutil.SafeClose(changed)
    		for {
    			c.connChange.Wait()
    			newState := c.State()
    			select {
    			case changed <- newState:
    				if newState == StateConnected || newState == StateShutdown {
    					c.connChange.L.Unlock()
    					return
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  3. cmd/bucket-object-lock.go

    			// or deleted by any user, including the root user in your AWS account.
    			// When an object is locked in compliance mode, its retention mode can't
    			// be changed, and its retention period can't be shortened. Compliance mode
    			// ensures that an object version can't be overwritten or deleted for the
    			// duration of the retention period.
    			t, err := objectlock.UTCNowNTP()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. istioctl/pkg/precheck/precheck.go

    		return err
    	}
    	for _, se := range ses.Items {
    		if se.Spec.Resolution != networking.ServiceEntry_NONE {
    			continue
    		}
    		changed := false
    		for _, p := range se.Spec.Ports {
    			if p.TargetPort != 0 && p.Number != p.TargetPort {
    				changed = true
    			}
    		}
    		if changed {
    			res := ObjectToInstance(se)
    			messages.Add(msg.NewUpdateIncompatibility(res,
    				"ENABLE_RESOLUTION_NONE_TARGET_PORT", "1.21",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. tests/upsert_test.go

    	DB.Where(&User{Name: "find or create 3"}).Assign("age", 55).FirstOrCreate(&user4)
    
    	if user4.Age != 55 {
    		t.Errorf("Failed to set change to 55, got %v", user4.Age)
    	}
    
    	if updatedAt1.Format(time.RFC3339Nano) == user4.UpdatedAt.Format(time.RFC3339Nano) {
    		t.Errorf("UpdateAt should be changed when update values with assign")
    	}
    
    	DB.Where(&User{Name: "find or create 4"}).Assign(User{Age: 44}).FirstOrCreate(&user4)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Sep 05 07:39:19 GMT 2022
    - 11.4K bytes
    - Viewed (0)
  6. cni/pkg/install/cniconfig.go

    		return cniConfigFilepath, err
    	}
    
    	if cfg.chainedCNIPlugin && strings.HasSuffix(cniConfigFilepath, ".conf") {
    		// If the old CNI config filename ends with .conf, rename it to .conflist, because it has to be changed to a list
    		installLog.Infof("Renaming %s extension to .conflist", cniConfigFilepath)
    		err = os.Rename(cniConfigFilepath, cniConfigFilepath+"list")
    		if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. cmd/data-usage_test.go

    			size: 200,
    		},
    	}
    	createUsageTestFiles(t, base, bucket, files)
    	err = os.RemoveAll(filepath.Join(base, bucket, "dir1/dira/dirasub/dcfile"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Changed dir must be picked up in this many cycles.
    	for i := 0; i < dataUsageUpdateDirCycles; i++ {
    		got, err = scanDataFolder(context.Background(), nil, base, got, getSize, 0, weSleep)
    		got.Info.NextCycle++
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  8. internal/grid/handlers.go

    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// responses *must* be read to either an error is returned or the channel is closed.
    	responses *Stream
    	newResp   func() Resp
    
    	// Requests sent to the server.
    	// If the handler is defined with 0 incoming capacity this will be nil.
    	// Channel *must* be closed to signal the end of the stream.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  9. finisher_api.go

    func (db *DB) Update(column string, value interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Dest = map[string]interface{}{column: value}
    	return tx.callbacks.Update().Execute(tx)
    }
    
    // Updates updates attributes using callbacks. values must be a struct or map. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  10. cmd/object-api-errors.go

    func (e PartTooBig) Error() string {
    	return "Part size bigger than the allowed limit"
    }
    
    // InvalidETag error returned when the etag has changed on disk
    type InvalidETag struct{}
    
    func (e InvalidETag) Error() string {
    	return "etag of the object has changed"
    }
    
    // BackendDown is returned for network errors
    type BackendDown struct {
    	Err string
    }
    
    func (e BackendDown) Error() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top