search for: force_numeric

Displaying 1 result from an estimated 1 matches for "force_numeric".

2007 Apr 03
0
[Sybase Adaptor] find_by_xxx does not work correctly.
...282 case value 283 when String 284 if column && column.type == :binary && column.class.respond_to?(:string_to_binary) 285 "#{quote_string(column.class.string_to_binary(value))}" 286 elsif @numconvert && force_numeric?(column) && value =~ /^[+-]?[0-9]+$/o <-- here 287 value 288 else 289 "''#{quote_string(value)}''" 290 end sybase_adapter.rb 302 def force_numeric?(column) 303 (column.ni...