File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
"crypto/tls"
7
7
"database/sql"
8
8
"fmt"
9
- "io/ioutil "
9
+ "io"
10
10
"math"
11
11
"net"
12
12
"os"
@@ -227,7 +227,7 @@ func TestBigColumn(t *testing.T) {
227
227
t .Fatal (err )
228
228
}
229
229
230
- _ , err = db .CopyTo (ioutil .Discard , "COPY (SELECT * FROM tests) TO STDOUT WITH CSV" )
230
+ _ , err = db .CopyTo (io .Discard , "COPY (SELECT * FROM tests) TO STDOUT WITH CSV" )
231
231
if err != nil {
232
232
t .Fatal (err )
233
233
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package pg_test
2
2
3
3
import (
4
4
"context"
5
- "io/ioutil "
5
+ "io"
6
6
"strings"
7
7
8
8
. "github.com/onsi/ginkgo"
@@ -422,7 +422,7 @@ var _ = Describe("BeforeQuery and AfterQuery", func() {
422
422
}
423
423
db .AddQueryHook (hookImpl )
424
424
425
- _ , err := db .Model ((* HookTest )(nil )).CopyTo (ioutil .Discard , `COPY ?TableName TO STDOUT CSV` )
425
+ _ , err := db .Model ((* HookTest )(nil )).CopyTo (io .Discard , `COPY ?TableName TO STDOUT CSV` )
426
426
Expect (err ).NotTo (HaveOccurred ())
427
427
})
428
428
@@ -469,7 +469,7 @@ var _ = Describe("BeforeQuery and AfterQuery", func() {
469
469
}
470
470
db .AddQueryHook (hookImpl )
471
471
472
- _ , err := db .CopyTo (ioutil .Discard , `COPY (SELECT 1) TO STDOUT CSV` )
472
+ _ , err := db .CopyTo (io .Discard , `COPY (SELECT 1) TO STDOUT CSV` )
473
473
Expect (err ).NotTo (HaveOccurred ())
474
474
})
475
475
})
You can’t perform that action at this time.
0 commit comments