Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Jan 14, 2025
1 parent f47c635 commit 573b1ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mysql/resultset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mysql
import "testing"

func TestColumnNumber(t *testing.T) {
r := Result{}
// Make sure ColumnNumber doesn't panic if ResultSet is nil
// https://github.com/go-mysql-org/go-mysql/issues/964
r := NewResultReserveResultset(0)
// Make sure ColumnNumber doesn't panic when constructing a Result with 0
// columns. https://github.com/go-mysql-org/go-mysql/issues/964
r.ColumnNumber()
}

0 comments on commit 573b1ed

Please sign in to comment.