jeremyevans/sequel — Issue #430: Sequel::Mysql.convert_invalid_date_time no longer works
Author: knaveofdiamonds
Created: 2012-01-31 12:02:10+00:00
State: open

To replicate, set

Sequel::MySQL.convert_invalid_date_time = :nil # or nil, :string etc.
DB = Sequel.connect(... connection params ...)
DB.convert_invalid_date_time # returns false.

Expected that DB.convert_invalid_date_time would return whatever you'd set Sequel::MySQL.convert_invalid_date_time to. This isn't a major issue, because you can work around it by setting convert_invalid_date_time on each DB connection individually - that still works. Had a look at the code, but couldn't see why the values on the DB connection wouldn't be being set - looking at line 62 of lib/sequel/adapters/mysql.rb

This may have the same problem with convert_tinyint_to_bool, as they look similar in terms of implementation.

I noticed this upgrading from Sequel 3.20.0 -> 3.31.0