Skip to content

Commit

Permalink
relax bind! Vector{UInt8} -> AbstractVector{UInt8}
Browse files Browse the repository at this point in the history
This allows zero-copy writes e.g. for ReinterpretArrays.
  • Loading branch information
maxfreu authored Apr 3, 2024
1 parent 95131f8 commit db17fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SQLite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function bind!(stmt::Stmt, i::Integer, val::Bool)
stmt.params[i] = val
@CHECK stmt.db C.sqlite3_bind_int(_get_stmt_handle(stmt), i, Int32(val))
end
function bind!(stmt::Stmt, i::Integer, val::Vector{UInt8})
function bind!(stmt::Stmt, i::Integer, val::AbstractVector{UInt8})
stmt.params[i] = val
@CHECK stmt.db C.sqlite3_bind_blob(
_get_stmt_handle(stmt),
Expand Down

0 comments on commit db17fda

Please sign in to comment.