Skip to content

Commit

Permalink
fix(driver/sqliteshim): make it work with recent version of modernc s…
Browse files Browse the repository at this point in the history
…qlite
  • Loading branch information
vmihailenco committed May 12, 2022
1 parent 2f5b970 commit 2360584
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion driver/sqliteshim/modernc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// See also https://pkg.go.dev/modernc.org/sqlite#hdr-Supported_platforms_and_architectures

//go:build !cgosqlite && ((darwin && amd64) || (darwin && arm64) || (linux && 386) || (linux && amd64) || (linux && arm) || (linux && arm64) || (windows && amd64))
// +build !cgosqlite
// +build darwin,amd64 darwin,arm64 linux,386 linux,amd64 linux,arm linux,arm64 windows,amd64

Expand All @@ -15,4 +16,4 @@ const (
driverName = "sqlite"
)

var shimDriver = (*sqlite.Driver)(nil)
var shimDriver = &sqlite.Driver{}

0 comments on commit 2360584

Please sign in to comment.