lib/active_record/connection_adapters/fdbsql/quoting.rb
# Quotes data types for SQL input.
Quotes data types for SQL input.
Quotes data types for SQL input .
def quote(value, column = nil)
          return super unless column
          case value
          when String
            if column.type == :binary
              hex_str = value ? value.unpack('H*')[0] : nil
              "x'#{hex_str}'"
            else
              super
            end
          else
            super
          end
        end
def quote ( value , column = nil ) return super unless column case value when String if column . type == :binary hex_str = value ? value . unpack ( 'H*' ) [ 0 ] : nil "x'#{hex_str}'" else super end else super end end
Quotes data types for SQL input.
Quotes data types for SQL input .
value
column