Joe Shaw bdab31cc98 fix double free in SQLiteBackup.Close() on error
The sqlite3_backup_finish() function never fails, it just returns the
error code from previous operations.  Previously if it returned an
error, the finalizer wouldn't be unset and sqlite3_backup_finish() would
be run again on an already-finished backup.  This results in a
double-free and often segfaults.

The error handling is described in more detail in the "Error handling"
section of https://www.sqlite.org/backup.html.
2016-10-27 16:44:56 -07:00
2015-11-02 11:53:42 +09:00
2016-08-11 18:51:38 +09:00
2016-08-11 18:43:49 +09:00
2016-04-23 00:00:50 +08:00
2016-08-11 01:15:52 +09:00
2016-09-03 20:02:56 +01:00
2015-01-26 18:38:13 +09:00
2014-08-18 17:00:59 +09:00
2014-08-18 16:52:12 +09:00
2016-04-23 00:00:49 +08:00
2015-08-20 03:02:59 +03:00
2015-12-30 00:19:24 +02:00
2016-08-11 01:47:31 +09:00
2016-08-11 01:47:31 +09:00
2016-08-11 01:15:52 +09:00

go-sqlite3

Build Status Coverage Status GoDoc

Description

sqlite3 driver conforming to the built-in database/sql interface

Installation

This package can be installed with the go get command:

go get github.com/mattn/go-sqlite3

go-sqlite3 is cgo package. If you want to build your app using go-sqlite3, you need gcc. However, if you install go-sqlite3 with go install github.com/mattn/go-sqlite3, you don't need gcc to build your app anymore.

Documentation

API documentation can be found here: http://godoc.org/github.com/mattn/go-sqlite3

Examples can be found under the ./_example directory

FAQ

License

MIT: http://mattn.mit-license.org/2012

sqlite3-binding.c, sqlite3-binding.h, sqlite3ext.h

The -binding suffix was added to avoid build failures under gccgo.

In this repository, those files are an amalgamation of code that was copied from SQLite3. The license of that code is the same as the license of SQLite3.

Author

Yasuhiro Matsumoto (a.k.a mattn)

Description
No description provided
Readme 50 MiB
Languages
C 96.2%
Go 3.4%
C++ 0.3%