mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: add currently-disabled broken test
Update #3865 R=golang-dev, alex.brainman, nightlyone CC=golang-dev https://golang.org/cl/7324051
This commit is contained in:
parent
f6fe3271f7
commit
8f2430a533
1 changed files with 26 additions and 0 deletions
|
|
@ -448,6 +448,32 @@ func TestIssue2542Deadlock(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestCloseStmtBeforeRows(t *testing.T) {
|
||||
t.Skip("known broken test; golang.org/issue/3865")
|
||||
return
|
||||
|
||||
db := newTestDB(t, "people")
|
||||
defer closeDB(t, db)
|
||||
|
||||
s, err := db.Prepare("SELECT|people|name|")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
r, err := s.Query()
|
||||
if err != nil {
|
||||
s.Close()
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = s.Close()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
r.Close()
|
||||
}
|
||||
|
||||
// Tests fix for issue 2788, that we bind nil to a []byte if the
|
||||
// value in the column is sql null
|
||||
func TestNullByteSlice(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue