mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Make sure queries (insert and query) work with any type
This commit is contained in:
parent
bf26cdc24f
commit
c8d5acceae
2 changed files with 25 additions and 3 deletions
|
@ -56,6 +56,10 @@ class SQLite3::Statement < DB::Statement
|
|||
check LibSQLite3.bind_blob(self, index, value, value.size, nil)
|
||||
end
|
||||
|
||||
private def bind_arg(index, value)
|
||||
raise "#{self.class} does not support #{value.class} params"
|
||||
end
|
||||
|
||||
private def check(code)
|
||||
raise Exception.new(@connection) unless code == 0
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue