    # File lib/active_record/connection_adapters/mysql_adapter.rb, line 185
          def quote(value, column = nil)
            if value.kind_of?(String) && column && column.type == :binary && column.class.respond_to?(:string_to_binary)
              s = column.class.string_to_binary(value).unpack("H*")[0]
              "x'#{s}'"
            elsif value.kind_of?(BigDecimal)
              "'#{value.to_s("F")}'"
            else
              super
            end
          end