@@ -379,28 +379,6 @@ func TestStringConvert(t *testing.T) {
379379 }
380380}
381381
382- func TestBinaryDataSQLFormatting (t * testing.T ) {
383- ctx := sql .NewEmptyContext ()
384- tests := []struct {
385- name string
386- typ sql.StringType
387- val interface {}
388- expectedVal interface {}
389- }{
390- {"binary hex" , MustCreateBinary (sqltypes .Binary , 4 ), []byte {0x0A , 0x00 , 0x00 , 0x00 }, []byte {'0' , 'x' , '0' , 'A' , '0' , '0' , '0' , '0' , '0' , '0' }},
391- {"varbinary hex" , MustCreateBinary (sqltypes .VarBinary , 4 ), []byte {0x0A , 0x00 , 0x40 , 0x00 }, []byte {'0' , 'x' , '0' , 'A' , '0' , '0' , '4' , '0' , '0' , '0' }},
392- {"blob hex" , MustCreateBinary (sqltypes .Blob , 4 ), []byte {0x0A , 0x00 , 0x80 , 0x00 }, []byte {'0' , 'x' , '0' , 'A' , '0' , '0' , '8' , '0' , '0' , '0' }},
393- }
394-
395- for _ , test := range tests {
396- t .Run (test .name , func (t * testing.T ) {
397- val , err := test .typ .SQL (ctx , nil , test .val )
398- require .NoError (t , err )
399- actual := val .Raw ()
400- assert .Equal (t , test .expectedVal , actual )
401- })
402- }
403- }
404382
405383func TestStringString (t * testing.T ) {
406384 tests := []struct {
0 commit comments