Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for search_with_empty_chain (0.11 seconds)

  1. tests/query_test.go

    	DB.Create(&address)
    
    	var result AddressByZipCode
    	DB.First(&result, "00501")
    
    	AssertEqual(t, result, address)
    }
    
    func TestSearchWithEmptyChain(t *testing.T) {
    	user := User{Name: "search_with_empty_chain", Age: 1}
    	DB.Create(&user)
    
    	var result User
    	if DB.Where("").Where("").First(&result).Error != nil {
    		t.Errorf("Should not raise any error if searching with empty strings")
    	}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jul 22 06:21:04 GMT 2025
    - 51K bytes
    - Click Count (0)
Back to Top