update to 0-based positional arguments

add samples
This commit is contained in:
Brian J. Cardiff 2016-01-31 19:40:43 -03:00
parent dd5c10ba6e
commit 15417b7c38
2 changed files with 23 additions and 1 deletions

View file

@ -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)