Skip to content

Commit

Permalink
test: remove stmt2 bind with wrong column count
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Dec 3, 2024
1 parent 4fc6cb0 commit b8bf0cb
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions driver/wrapper/stmt2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4901,40 +4901,6 @@ func TestTaosStmt2BindBinaryParse(t *testing.T) {
},
wantErr: assert.Error,
},
{
name: "wrong param count",
args: args{
sql: "insert into test1 values (?,?)",
data: []byte{
// total Length
0x3A, 0x00, 0x00, 0x00,
// tableCount
0x01, 0x00, 0x00, 0x00,
// TagCount
0x00, 0x00, 0x00, 0x00,
// ColCount
0x01, 0x00, 0x00, 0x00,
// TableNamesOffset
0x00, 0x00, 0x00, 0x00,
// TagsOffset
0x00, 0x00, 0x00, 0x00,
// ColOffset
0x1c, 0x00, 0x00, 0x00,
// cols
0x1a, 0x00, 0x00, 0x00,

0x1a, 0x00, 0x00, 0x00,
0x09, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00,
0x00,
0x00,
0x08, 0x00, 0x00, 0x00,
0xba, 0x08, 0x32, 0x27, 0x92, 0x01, 0x00, 0x00,
},
colIdx: -1,
},
wantErr: assert.Error,
},
{
name: "bind binary",
args: args{
Expand Down

0 comments on commit b8bf0cb

Please sign in to comment.