From 0f6f374d272cad9a5e9c5e345427dd1c626c3abe Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 9 Apr 2013 15:18:47 +0900 Subject: [PATCH] Treat int as 64bit --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index bbe7881..660982d 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -251,7 +251,7 @@ func (s *SQLiteStmt) bind(args []driver.Value) error { rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&b[0])), C.int(len(b))) } case int: - rv = C.sqlite3_bind_int(s.s, n, C.int(v)) + rv = C.sqlite3_bind_int64(s.s, n, C.sqlite3_int64(v)) case int32: rv = C.sqlite3_bind_int(s.s, n, C.int(v)) case int64: