Sha256: f22a203e3a7b7aedfb26f753578e1c42ba23a9aa9c5bef33654315a0db4443f2

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    class Mysql2Adapter
      private

      def _quote(value)
        if value.is_a?(Type::Uuid::Data) or value.is_a?(Type::Binary::Data)
          "x'#{value.hex}'"
        else
          super
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-mysql-uuid-column-0.2.0 lib/active_record-mysql-uuid_column/mysql2_adapter_monkey_patch.rb
activerecord-mysql-uuid-column-0.1.1 lib/active_record-mysql-uuid_column/mysql2_adapter_monkey_patch.rb
activerecord-mysql-uuid-column-0.1.0 lib/active_record-mysql-uuid_column/mysql2_adapter_monkey_patch.rb