Treat int as 64bit

This commit is contained in:
mattn 2013-04-09 15:18:47 +09:00
parent d9f6dadfbf
commit 0f6f374d27
1 changed files with 1 additions and 1 deletions

View File

@ -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))) rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&b[0])), C.int(len(b)))
} }
case int: 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: case int32:
rv = C.sqlite3_bind_int(s.s, n, C.int(v)) rv = C.sqlite3_bind_int(s.s, n, C.int(v))
case int64: case int64: