mattn/go-sqlite3 — pull request #6 by lye (2012-02-07 04:00:12+00:00)
Title: Fix marshaling error in Go->SQLite boolean values

This changeset adds a testcase for marshaling boolean values. With SQLite 3.7.9, that testcase is spitting out:

--- FAIL: sqlite.TestBooleanRoundtrip (0.01 seconds)
sqlite3.cgo1.go:-8: Unable to scan results:%!(EXTRA *errors.errorString=sql: Scan error on column index 1: sql/driver: couldn't convert -1 into type bool)

The SQLite docs say that a `true` value should be marshaled as `1`; but it's currently being passed as `-1`. I'm not sure if this is true for older versions of SQLite, or if this was just overlooked. In any case, this patch fixes it for me.