Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Round (0.12 sec)

  1. tests/migrate_test.go

    		}
    		var found gorm.ColumnType
    		for _, columnType := range columnTypes {
    			if columnType.Name() == fieldName {
    				found = columnType
    			}
    		}
    		if found == nil {
    			t.Fatalf("%v: failed to find column type %q", utils.FileWithLineNum(), fieldName)
    		}
    		if actualUnique, ok := found.Unique(); !ok || actualUnique != unique {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. tests/query_test.go

    	}
    
    	if len(users) != 4 {
    		t.Errorf("Four users should be found, instead found %d", len(users))
    	}
    
    	DB.Select("*").Where("name LIKE ?", "subquery%").Where("age >= (?)", DB.
    		Select("AVG(age)").Table("users").Where("name LIKE ?", "subquery%")).Find(&users)
    
    	if len(users) != 2 {
    		t.Errorf("Two users should be found, instead found %d", len(users))
    	}
    }
    
    func TestSubQueryWithRaw(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top