Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for ROW_NUMBER (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/generics_test.go

    	}).Where("name in ?", names).Find(ctx)
    	if err == nil {
    		t.Fatalf("Preload should failed, but got nil")
    	}
    
    	if DB.Dialector.Name() == "mysql" {
    		// mysql 5.7 doesn't support row_number()
    		if strings.HasPrefix(DB.Dialector.(*mysql.Dialector).ServerVersion, "5.7") {
    			return
    		}
    	}
    	results, err = db.Preload("Pets", func(db gorm.PreloadBuilder) error {
    		db.LimitPerRecord(5)
    		return nil
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Sun Nov 02 14:09:18 GMT 2025
    - 33.7K bytes
    - Click Count (0)
Back to Top