Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AllowGlobalUpdate (0.16 sec)

  1. tests/scanner_valuer_test.go

    	}
    
    	if !reflect.DeepEqual([]interface{}{"jinzhu", "POINT(100 100)"}, stmt.Vars) {
    		t.Errorf("generated vars is not equal, got %v", stmt.Vars)
    	}
    
    	stmt = dryRunDB.Session(&gorm.Session{
    		AllowGlobalUpdate: true,
    	}).Model(&UserWithPoint{}).Updates(UserWithPoint{
    		Name:  "jinzhu",
    		Point: Point{X: 100, Y: 100},
    	}).Statement
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
Back to top