Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Page (0.15 sec)

  1. tests/count_test.go

    		"(CASE WHEN age=18 THEN 1 ELSE 2 END) as age", "name",
    	).Count(&count8).Find(&users).Error; err != nil || count8 != 3 {
    		t.Fatalf("Count should work, but got err %v", err)
    	}
    
    	expects = []User{{Name: "count-1", Age: 1}, {Name: "count-2", Age: 1}, {Name: "count-3", Age: 1}}
    	sort.SliceStable(users, func(i, j int) bool {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 6.9K bytes
    - Viewed (0)
Back to top