Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/database/sql/convert_test.go

    		t.Fatalf("allocs = %v; want max 1", n)
    	}
    }
    
    // https://golang.org/issues/13905
    func TestUserDefinedBytes(t *testing.T) {
    	type userDefinedBytes []byte
    	var u userDefinedBytes
    	v := []byte("foo")
    
    	convertAssign(&u, v)
    	if &u[0] == &v[0] {
    		t.Fatal("userDefinedBytes got potentially dirty driver memory")
    	}
    }
    
    type Valuer_V string
    
    func (v Valuer_V) Value() (driver.Value, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top