Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGaussDBOnConstraint (0.8 sec)

  1. tests/gaussdb_test.go

    		Categories: []*Category{
    			{Title: "Coding"},
    			{Title: "Golang"},
    		},
    	}
    
    	if err := DB.Create(&post).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    }
    
    func TestGaussDBOnConstraint(t *testing.T) {
    	t.Skipf("This test case skipped, because of gaussdb not support 'ON CONSTRAINT' statement")
    	if DB.Dialector.Name() != "gaussdb" {
    		t.Skip()
    	}
    
    	type Thing struct {
    		gorm.Model
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top