Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 500 (0.16 sec)

  1. tests/hooks_test.go

    	result.Name += "_clone"
    	AssertObjEqual(t, result, resultClone, "Price", "Name")
    
    	DB.Model(&result).Update("Price", 500)
    	var result2 Product2
    	DB.First(&result2, "name = ?", "Nice")
    
    	if result2.Price != 500 {
    		t.Errorf("Failed to update product's price, expects: %v, got %v", 500, result2.Price)
    	}
    
    	product3 := Product2{Name: "Nice2", Price: 600, Owner: "admin"}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Feb 18 01:20:29 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. tests/prepared_stmt_test.go

    	if _, ok := tx.ConnPool.(*gorm.PreparedStmtDB); !ok {
    		t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode")
    	}
    
    	ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    	defer cancel()
    	txCtx := tx.WithContext(ctx)
    
    	user := *GetUser("prepared_stmt", Config{})
    
    	txCtx.Create(&user)
    
    	var result1 User
    	if err := txCtx.Find(&result1, user.ID).Error; err != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 07:55:43 GMT 2024
    - 4K bytes
    - Viewed (0)
Back to top