lib/sequel/adapters/shared/mysql.rb in sequel-5.61.0 vs lib/sequel/adapters/shared/mysql.rb in sequel-5.62.0

- old
+ new

@@ -548,9 +548,16 @@ row[:extra] = extra [m.call(row.delete(:Field)), row] end end + # Return nil if CHECK constraints are not supported, because + # versions that don't support check constraints don't raise + # errors for values outside of range. + def column_schema_integer_min_max_values(db_type) + super if supports_check_constraints? + end + # Split DROP INDEX ops on MySQL 5.6+, as dropping them in the same # statement as dropping a related foreign key causes an error. def split_alter_table_op?(op) server_version >= 50600 && (op[:op] == :drop_index || (op[:op] == :drop_constraint && op[:type] == :unique)) end