fluiddb 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/FluidDb.rb +2 -0
- metadata +1 -1
data/lib/FluidDb.rb
CHANGED
@@ -55,6 +55,8 @@ module FluidDb
|
|
55
55
|
sql = sql.sub( "?", v.to_s )
|
56
56
|
elsif v.is_a?(Numeric) then
|
57
57
|
sql = sql.sub( "?", v.to_s )
|
58
|
+
elsif v.is_nil? then
|
59
|
+
sql = sql.sub( "?", 'NULL' )
|
58
60
|
else
|
59
61
|
raise ParamTypeNotSupportedError.new( "Name of unknown param type, #{v.class.name}, for sql, #{sql}" )
|
60
62
|
end
|