aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-04-09 15:18:47 +0900
committermattn <mattn.jp@gmail.com>2013-04-09 15:18:47 +0900
commit0f6f374d272cad9a5e9c5e345427dd1c626c3abe (patch)
tree772cb00f555b2b92ed029514632ead16da8ec341 /sqlite3.go
parentAdd int32 type, close #55 (diff)
downloadgolite-0f6f374d272cad9a5e9c5e345427dd1c626c3abe.tar.gz
golite-0f6f374d272cad9a5e9c5e345427dd1c626c3abe.tar.xz
Treat int as 64bit
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
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: