mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
update to 0-based positional arguments
add samples
This commit is contained in:
parent
dd5c10ba6e
commit
15417b7c38
2 changed files with 23 additions and 1 deletions
|
@ -13,7 +13,7 @@ class SQLite3::Statement2 < DB::Statement
|
|||
end
|
||||
|
||||
protected def add_parameter(index : Int32, value)
|
||||
bind_arg(index, value)
|
||||
bind_arg(index + 1, value)
|
||||
end
|
||||
|
||||
protected def add_parameter(name : String, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue