Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCreateOnConflictWithDefaultNull (0.13 sec)

  1. tests/create_test.go

    		t.Fatalf("errors happened when query: %v", err)
    	} else {
    		AssertObjEqual(t, newProd, prod, "ProductID", "LanguageCode", "Code", "Name")
    	}
    }
    
    func TestCreateOnConflictWithDefaultNull(t *testing.T) {
    	type OnConflictUser struct {
    		ID     string
    		Name   string `gorm:"default:null"`
    		Email  string
    		Mobile string `gorm:"default:'133xxxx'"`
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top