Skip to content

Commit

Permalink
using '[]any' replace 'interface{}'
Browse files Browse the repository at this point in the history
Signed-off-by: “EricZequan” <[email protected]>
  • Loading branch information
EricZequan committed Aug 12, 2024
1 parent dc430b7 commit 67c9c95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/server/tests/commontest/tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func TestVectorTypeTextProtocol(t *testing.T) {
require.Equal(t, reflect.TypeOf(sql.RawBytes{}).String(), columnTypes[1].ScanType().String())

require.True(t, rows.Next())
rowDatums := make([]interface{}, 2)
rowDatumsPtr := make([]interface{}, 2)
rowDatums := make([]any, 2)
rowDatumsPtr := make([]any, 2)
for i := range rowDatumsPtr {
rowDatumsPtr[i] = &rowDatums[i]
}
Expand Down Expand Up @@ -167,8 +167,8 @@ func TestVectorTypeBinaryProtocol(t *testing.T) {
require.Equal(t, reflect.TypeOf(sql.RawBytes{}).String(), columnTypes[1].ScanType().String())

require.True(t, rows.Next())
rowDatums := make([]interface{}, 2)
rowDatumsPtr := make([]interface{}, 2)
rowDatums := make([]any, 2)
rowDatumsPtr := make([]any, 2)
for i := range rowDatumsPtr {
rowDatumsPtr[i] = &rowDatums[i]
}
Expand Down

0 comments on commit 67c9c95

Please sign in to comment.