diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-10-31 08:38:40 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-10-31 08:40:16 -0600 |
commit | 53ec0bc0551c696add0a5ffff506fc9e83065bc0 (patch) | |
tree | 248907595958e68d301557af691e890c3ee2d821 /activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | |
parent | 828c64241c34668bb540019cd71e232400335e74 (diff) | |
download | rails-53ec0bc0551c696add0a5ffff506fc9e83065bc0.tar.gz rails-53ec0bc0551c696add0a5ffff506fc9e83065bc0.tar.bz2 rails-53ec0bc0551c696add0a5ffff506fc9e83065bc0.zip |
Don't require calculations to be aliased to a column
Arel has changed so that `.sum` no longer aliases `SUM(the_column)` to
`sum_id`. This means the type returned by the adapter will be at the key
`"SUM(the_column)"`. Longer term, we should eventually be able to retain
type information from the AR::Base subclasses used in joined queries
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb')
0 files changed, 0 insertions, 0 deletions