Sha256: ccf58aca57b59e0c935bb5d682875995b81e65f71e29e30170f3f6b63dfea8a6
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true require "cases/helper" class Mysql2SqlTypesTest < ActiveRecord::Mysql2TestCase def test_binary_types assert_equal "varbinary(64)", type_to_sql(:binary, 64) assert_equal "varbinary(4095)", type_to_sql(:binary, 4095) assert_equal "blob", type_to_sql(:binary, 4096) assert_equal "blob", type_to_sql(:binary) end def type_to_sql(type, limit = nil) ActiveRecord::Base.connection.type_to_sql(type, limit: limit) end end
Version data entries
4 entries across 4 versions & 1 rubygems