Add Extension(s) loading

This commit is contained in:
Gert-Jan Timmer 2018-06-20 16:48:54 +02:00
parent 7157abb791
commit be463d8986
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// +build !sqlite_omit_load_extension
// +build !sqlite_omit_load_extension !sqlite_disable_extensions
package sqlite3
@ -38,7 +38,6 @@ func (c *SQLiteConn) loadExtensions(extensions []string) error {
if rv != C.SQLITE_OK {
// Disable Extension Loading
rv = C.sqlite3_enable_load_extension(c.db, 0)
fmt.Printf("%d\n", rv)
if rv != C.SQLITE_OK {
return errors.New("Failed to disable extension loading")
}

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// +build sqlite_omit_load_extension
// +build sqlite_omit_load_extension sqlite_disable_extensions
package sqlite3