aboutsummaryrefslogtreecommitdiff
path: root/sqlite.go
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite.go')
-rw-r--r--sqlite.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlite.go b/sqlite.go
index 9dbb5ad..51bc41d 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -41,7 +41,10 @@ const (
)
func init() {
- bin.Init(heapSize, heapReserve)
+ if v := bin.Init(heapSize, heapReserve); v != 0 {
+ panic(fmt.Errorf("initialization failed: %v", v))
+ }
+
sql.Register(driverName, newDrv())
}