aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy mysql adapterAbdelkader Boudih2015-12-171-1/+1
|
* Fix the MySQL column type `SET` registration bugTaishi Kasuga2015-06-201-0/+4
|
* fix MySQL enum type lookup with values matching another type. Closes #17402.Yves Senn2014-10-291-0/+4
| | | | | | | | | | The MySQLAdapter type map used the lowest priority for enum types. This was the result of a recent refactoring and lead to some broken lookups for enums with values that match other types. Like `8bit`. This patch restores the priority to what we had before the refactoring. /cc @sgrif
* Delegate `Column#type` to the injected type objectSean Griffin2014-05-191-0/+61
The decision to wrap type registrations in a proc was made for two reasons. 1. Some cases need to make an additional decision based on the type (e.g. a `Decimal` with a 0 scale) 2. Aliased types are automatically updated if they type they point to is updated later. If a user or another adapter decides to change the object used for `decimal` columns, `numeric`, and `number` will automatically point to the new type, without having to track what types are aliased explicitly. Everything else here should be pretty straightforward. PostgreSQL ranges had to change slightly, since the `simplified_type` method is gone.