mirror of https://github.com/mattn/go-sqlite3.git
Remove dead code in SQLiteRows.Bind. Close #119
This commit is contained in:
parent
71e406bc79
commit
f7d2df0102
|
@ -364,22 +364,14 @@ func (s *SQLiteStmt) bind(args []driver.Value) error {
|
|||
b := []byte(v)
|
||||
rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&b[0])), C.int(len(b)))
|
||||
}
|
||||
case int:
|
||||
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:
|
||||
rv = C.sqlite3_bind_int64(s.s, n, C.sqlite3_int64(v))
|
||||
case byte:
|
||||
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)
|
||||
} else {
|
||||
rv = C.sqlite3_bind_int(s.s, n, 0)
|
||||
}
|
||||
case float32:
|
||||
rv = C.sqlite3_bind_double(s.s, n, C.double(v))
|
||||
case float64:
|
||||
rv = C.sqlite3_bind_double(s.s, n, C.double(v))
|
||||
case []byte:
|
||||
|
|
Loading…
Reference in New Issue