lib/sequel/adapters/shared/mysql.rb in sequel-3.47.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-3.48.0

- old
+ new

@@ -29,10 +29,12 @@ end # Methods shared by Database instances that connect to MySQL, # currently supported by the native and JDBC adapters. module DatabaseMethods + extend Sequel::Database::ResetIdentifierMangling + AUTO_INCREMENT = 'AUTO_INCREMENT'.freeze CAST_TYPES = {String=>:CHAR, Integer=>:SIGNED, Time=>:DATETIME, DateTime=>:DATETIME, Numeric=>:DECIMAL, BigDecimal=>:DECIMAL, File=>:BINARY} COLUMN_DEFINITION_ORDER = [:collate, :null, :default, :unique, :primary_key, :auto_increment, :references] PRIMARY = 'PRIMARY'.freeze MYSQL_TIMESTAMP_RE = /\ACURRENT_(?:DATE|TIMESTAMP)?\z/ @@ -429,9 +431,13 @@ # Recognize MySQL set type. def schema_column_type(db_type) case db_type when /\Aset/io :set + when /\Amediumint/io + :integer + when /\Amediumtext/io + :string else super end end