diff options
Diffstat (limited to 'sqlite_go18.go')
-rw-r--r-- | sqlite_go18.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sqlite_go18.go b/sqlite_go18.go index e5af64d..75d926c 100644 --- a/sqlite_go18.go +++ b/sqlite_go18.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//+build go1.8 +// +build go1.8 package sqlite // import "modernc.org/sqlite" @@ -10,7 +10,6 @@ import ( "context" "database/sql/driver" "errors" - "unsafe" ) // Ping implements driver.Pinger @@ -18,7 +17,7 @@ func (c *conn) Ping(ctx context.Context) error { c.Lock() defer c.Unlock() - if uintptr(unsafe.Pointer(c.ppdb)) == 0 { + if c.ppdb == 0 { return errors.New("db is closed") } |