diff options
author | mattn <mattn.jp@gmail.com> | 2012-02-06 20:19:51 -0800 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-02-06 20:19:51 -0800 |
commit | 93ab2db4080df2323777eae75c542cdc53b6178e (patch) | |
tree | d592973524b57e0e482f4dfa7155a3972d8e97dc /sqlite3.go | |
parent | fixed package name. (diff) | |
parent | For boolean values, marshal true to SQLite 1, not -1 (diff) | |
download | golite-93ab2db4080df2323777eae75c542cdc53b6178e.tar.gz golite-93ab2db4080df2323777eae75c542cdc53b6178e.tar.xz |
Merge pull request #6 from lye/master
Fix marshaling error in Go->SQLite boolean values
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -169,7 +169,7 @@ func (s *SQLiteStmt) bind(args []interface{}) error { rv = C.sqlite3_bind_int(s.s, n, C.int(v)) case bool: if bool(v) { - rv = C.sqlite3_bind_int(s.s, n, -1) + rv = C.sqlite3_bind_int(s.s, n, 1) } else { rv = C.sqlite3_bind_int(s.s, n, 0) } |