Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tv (0.02 sec)

  1. tests/query_test.go

    	}
    
    	for idx, tv := range times {
    		AssertEqual(t, tv, users[idx].CreatedAt)
    	}
    
    	var ptrtimes []*time.Time
    	if err := DB.Model(User{}).Where("name like ?", "pluck-user%").Pluck("created_at", &ptrtimes).Error; err != nil {
    		t.Errorf("got error when pluck time: %v", err)
    	}
    
    	for idx, tv := range ptrtimes {
    		AssertEqual(t, tv, users[idx].CreatedAt)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top