diff options
author | Jan Mercl <0xjnml@gmail.com> | 2019-12-18 17:51:11 +0100 |
---|---|---|
committer | Jan Mercl <0xjnml@gmail.com> | 2019-12-18 17:51:11 +0100 |
commit | 0bd6d67fefae8bb593662c01bd539776019681a8 (patch) | |
tree | 12124ac1d27826cea1c39f115f2c24a835deadb3 /sqlite_go18.go | |
parent | 8afe3d5bd9a307c22902c09273e89729cf4469ce (diff) |
prepare pre-alpha release
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") } |