Commit 8f2430a5 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

database/sql: add currently-disabled broken test

Update #3865

R=golang-dev, alex.brainman, nightlyone
CC=golang-dev
https://golang.org/cl/7324051
parent f6fe3271
...@@ -448,6 +448,32 @@ func TestIssue2542Deadlock(t *testing.T) { ...@@ -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 // Tests fix for issue 2788, that we bind nil to a []byte if the
// value in the column is sql null // value in the column is sql null
func TestNullByteSlice(t *testing.T) { func TestNullByteSlice(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment