aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-04-08 17:38:30 +0900
committermattn <mattn.jp@gmail.com>2013-04-08 17:39:03 +0900
commitd9f6dadfbf7a748501f2eb8cb7a2fa4de845fedc (patch)
tree376a904097c6a0c5ca216f60082a27c321c4fcff
parentFix #54 (diff)
downloadgolite-d9f6dadfbf7a748501f2eb8cb7a2fa4de845fedc.tar.gz
golite-d9f6dadfbf7a748501f2eb8cb7a2fa4de845fedc.tar.xz
Add int32 type, close #55
-rw-r--r--sqlite3.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 40458b5..bbe7881 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -252,6 +252,8 @@ func (s *SQLiteStmt) bind(args []driver.Value) error {
}
case int:
rv = C.sqlite3_bind_int(s.s, n, C.int(v))
+ case int32:
+ rv = C.sqlite3_bind_int(s.s, n, C.int(v))
case int64:
rv = C.sqlite3_bind_int64(s.s, n, C.sqlite3_int64(v))
case byte: