Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReturningWithNullToZeroValues (0.34 sec)

  1. tests/gorm_test.go

    	_, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
    	if err == nil {
    		t.Fatalf("should returns error but got nil")
    	}
    }
    
    func TestReturningWithNullToZeroValues(t *testing.T) {
    	dialect := DB.Dialector.Name()
    	switch dialect {
    	case "mysql", "sqlserver":
    		// these dialects do not support the "returning" clause
    		return
    	default:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jun 01 07:22:21 GMT 2023
    - 3.3K bytes
    - Viewed (0)
Back to top