lib/motion-sqlite3/statement.rb in motion-sqlite3-0.4.1 vs lib/motion-sqlite3/statement.rb in motion-sqlite3-0.4.2
- old
+ new
@@ -48,10 +48,10 @@
index = column_index(name)
case value
when NilClass
result = sqlite3_bind_null(@handle.value, index)
- when String
+ when String, Symbol
result = sqlite3_bind_text(@handle.value, index, value, -1, lambda { |arg| })
when Integer
result = sqlite3_bind_int(@handle.value, index, value)
when Float
result = sqlite3_bind_double(@handle.value, index, value)