Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testnode (0.16 sec)

  1. tests/query_test.go

    	if regexp.MustCompile("SELECT \\* FROM .*users").MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("SQL should not include a * wildcard, but got %v", result.Statement.SQL.String())
    	}
    }
    
    func TestNot(t *testing.T) {
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    
    	result := dryDB.Not(map[string]interface{}{"name": "jinzhu"}).Find(&User{})
    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