lib/active_record/connection_adapters/fdbsql/quoting.rb
# Cast a +value+ to a type that the database understands.
# Used in the prepared statement path.
Cast a +value+ to a type that the database understands.
Used in the prepared statement path.
Cast a + value + to a type that the database understands . Used in the prepared statement path .
def type_cast(value, column)
          return super unless column
          case value
          when String
            if :binary == column.type
              { :value => value, :format => 1 }
            else
              super
            end
          else
            super
          end
        end
def type_cast ( value , column ) return super unless column case value when String if :binary == column . type { :value => value , :format => 1 } else super end else super end end
Cast a +value+ to a type that the database understands.
Cast a + value + to a type that the database understands .
# Send binary data as binary format
value
column