aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix GROUP BY with calculate longer name field to respect `table_alias_length`Ryuta Kamizono2019-04-081-5/+6
* Don't repeat same expression in SELECT and GROUP BY clausesRyuta Kamizono2019-04-061-26/+20
* Fix `count(:all)` with eager loading and explicit select and orderRyuta Kamizono2019-04-041-4/+5
* Optimizer hints should be applied on Top level query as much as possibleRyuta Kamizono2019-04-041-3/+4
* fixes different `count` calculation when using `size` manual `select` with DI...jvillarejo2019-02-261-3/+8
* Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-4/+2
* Do not allow passing the column name to `sum` when a block is passedRafael Mendonça França2019-01-171-6/+4
* Do not allow passing the column name to `count` when a block is passedRafael Mendonça França2019-01-171-6/+4
* Make average compatible accross Ruby versionsAlberto Almagro2019-01-041-1/+1
* Fix TypeError: no implicit conversion of Arel::Attributes::Attribute into Str...Ryuta Kamizono2019-01-021-1/+1
* Permit list usage cleanup and clearer documentationKevin Deisz2018-08-271-1/+1
* Convert over the rest of the whitelist referencesKevin Deisz2018-08-241-1/+1
* Fix TypeError: no implicit conversion of Arel::Attributes::Attribute into StringBart de Water2018-07-281-1/+1
* Enable Start/EndWith and RegexpMatch copsBart de Water2018-07-281-1/+1
* Distinct with order #count regressionMax Schwenk2018-02-251-1/+1
* Fix formatting of `pick` [ci skip]yuuji.yaginuma2018-02-101-1/+1
* Add Relation#pick as short-hand for single-value plucks (#31941)David Heinemeier Hansson2018-02-091-0/+18
* Avoid extra calls to to_sDaniel Colson2018-01-291-1/+1
* Fix `count(:all)` with eager loading and having an order other than the drivi...Ryuta Kamizono2018-01-251-1/+8
* Fix `count(:all)` to correctly work `distinct` with custom SELECT listRyuta Kamizono2017-12-201-10/+8
* try using regexesBen Toews2017-11-091-9/+3
* allow table name and direction in string order argBen Toews2017-11-091-23/+8
* allow Arel.sql() for pluckBen Toews2017-11-091-6/+14
* add config to check arguments to unsafe AR methodsBen Toews2017-11-091-14/+28
* Ensure `apply_join_dependency` for `collection_cache_key` if eager-loading is...Ryuta Kamizono2017-11-061-2/+2
* Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-10-141-1/+1
* Remove meaningless named `construct_relation_for_association_calculations`Ryuta Kamizono2017-10-091-2/+3
* Ensure `1 AS one` for SQL Server with calculations.Ken Collins2017-09-221-1/+1
* Ensure sum honors distinct on has_many throughAaron Wortham2017-08-141-0/+3
* Merge pull request #29848 from kamipo/fix_distinct_count_with_order_and_limitRafael França2017-07-241-10/+19
|\
| * Should keep the table name qualified `*` for distinct subqueryRyuta Kamizono2017-07-221-1/+1
| * Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-07-221-10/+19
* | Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-241-3/+3
|/
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Skip query cache for in_batches and friendsEugene Kenny2017-07-061-3/+3
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Fix the next version of Rails from 5.3 to 6.0Ryuta Kamizono2017-06-291-2/+2
* Remove delegating to arel in a relationRyuta Kamizono2017-06-291-1/+1
* Deprecate passing arguments and block at the same time to `count` and `sum` i...Ryuta Kamizono2017-05-291-2/+20
* Don't pass `arel.engine` to `Arel::SelectManager.new`Ryuta Kamizono2017-05-051-2/+1
* Simply forward `Calculations#count` to `Enumerable#count`Ryuta Kamizono2017-03-101-7/+4
* Include selects in group query with having clauseEugene Kenny2017-02-261-0/+1
* Remove useless `select_values += select_values`Ryuta Kamizono2017-02-261-1/+0
* Suppress `DISTINCT` clause outside aggregate functionRyuta Kamizono2017-02-251-2/+2
* Revert "Remove useless `column_alias` in `subquery_for_count`"Ryuta Kamizono2017-02-071-2/+3
* Remove useless `column_alias` in `subquery_for_count`Ryuta Kamizono2017-02-061-3/+2
* `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* Avoid `unscope(:order)` when `limit_value` is presented for `count`Ryuta Kamizono2016-11-061-6/+6
* Use attribute_names over column_namesKeenan Brock2016-10-041-6/+2