• S
    Result sets never override a model's column type · 8eb536e7
    Sean Griffin 提交于
    MySQL and PostgreSQL provide a column type override in order to properly
    type cast computed columns included in a result set. This should never
    override the known types of full fledged columns. In addition to messing
    up computed properties, this would have led to inconsistent behavior
    between a record created with `new`, and a record created with `last` on
    the mysql adapter in the following cases:
    
    - `tinyint(1)` with `emulate_booleans` set to `false`
    - `text`, `string`, `binary`, and `decimal` columns
    8eb536e7
custom_properties_test.rb 2.6 KB