forked from mirror/go-sqlite3
Disable LoadExtension when omit_load_extension is specified
This commit is contained in:
parent
da9decb965
commit
4bc448f79b
|
@ -8,6 +8,6 @@ package sqlite3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -DUSE_LIBSQLITE3
|
#cgo CFLAGS: -DUSE_LIBSQLITE3
|
||||||
#cgo LDFLAGS: -lsqlite3
|
#cgo linux darwin LDFLAGS: -lsqlite3
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
|
@ -17,3 +17,7 @@ import (
|
||||||
func (c *SQLiteConn) loadExtensions(extensions []string) error {
|
func (c *SQLiteConn) loadExtensions(extensions []string) error {
|
||||||
return errors.New("Extensions have been disabled for static builds")
|
return errors.New("Extensions have been disabled for static builds")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *SQLiteConn) LoadExtension(lib string, entry string) error {
|
||||||
|
return errors.New("Extensions have been disabled for static builds")
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue