Sha256: 564509b5212cc33d3aaeb58aa57e5651c4e234cbc2cfaa44c5ebb306cd2db763
Contents?: true
Size: 433 Bytes
Versions: 6
Compression:
Stored size: 433 Bytes
Contents
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(*args) ActiveRecord::Base.connection.type_to_sql(*args) end end
Version data entries
6 entries across 6 versions & 1 rubygems