aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Revert "Fix NumericData.average test on ruby 2.6"Alberto Almagro2019-01-041-6/+2
* Fix TypeError: no implicit conversion of Arel::Attributes::Attribute into Str...Ryuta Kamizono2019-01-021-0/+2
* Fix join table column quoting with SQLite.Gannon McGibbon2018-12-051-0/+4
* Fix NumericData.average test on ruby 2.6Abdallah Samman2018-12-031-2/+6
* Redact SQL in errorsGannon McGibbon2018-11-221-2/+2
* Avoid creating temporary arrays in ActiveRecord::Result#cast_values in order ...Lachlan Sylvester2018-06-191-0/+12
* Fix GROUP BY queries to apply LIMIT/OFFSET after aggregationsRyuta Kamizono2018-06-071-0/+18
* Add `delegate :pick, to: :all`Yuji Hanamura2018-03-091-0/+5
* Merge pull request #32005 from maschwenk/ar-distinct-order-count-regressionRyuta Kamizono2018-02-271-0/+6
|\
| * Distinct with order #count regressionMax Schwenk2018-02-251-0/+8
|/
* Add test to make sure pick works in a NullRelationRafael Mendonça França2018-02-121-0/+2
* Add Relation#pick as short-hand for single-value plucks (#31941)David Heinemeier Hansson2018-02-091-0/+10
* Fix `count(:all)` with eager loading and having an order other than the drivi...Ryuta Kamizono2018-01-251-1/+7
* Fix `pluck` with eager loading to respect `offset`Ryuta Kamizono2018-01-071-0/+5
* Fix `count(:all)` to correctly work `distinct` with custom SELECT listRyuta Kamizono2017-12-201-0/+6
* try using regexesBen Toews2017-11-091-7/+7
* allow Arel.sql() for pluckBen Toews2017-11-091-12/+12
* Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-10-141-0/+4
* sqlite3 adapter returns integer value which used to be stringYasuo Honda2017-09-011-2/+1
* Merge remote-tracking branch 'origin/master' into unlock-minitestRafael Mendonça França2017-08-011-0/+26
|\
| * Should keep the table name qualified `*` for distinct subqueryRyuta Kamizono2017-07-221-0/+12
| * Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-07-221-0/+12
| * Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* | Merge branch 'master' into unlock-minitestKasper Timm Hansen2017-07-151-2/+47
|\|
| * Skip query cache for in_batches and friendsEugene Kenny2017-07-061-0/+42
| * 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 `test_pluck_without_column_names` when using OracleKoichi ITO2017-06-061-2/+5
* | Load schema before assertionyuuji.yaginuma2017-06-061-0/+6
|/
* Merge pull request #26634 from kamipo/extract_numeric_dataRafael França2017-05-311-8/+1
|\
| * Extract `NumericData` model for testsRyuta Kamizono2016-09-271-8/+1
* | Deprecate passing arguments and block at the same time to `count` and `sum` i...Ryuta Kamizono2017-05-291-0/+12
* | Whitelist adapters that support aliases in `HAVING` clauseAndrew White2017-03-011-1/+1
* | Oracle database also does not allow aliases in the having clauseYasuo Honda2017-02-271-1/+1
* | Fix `test_apply_distinct_in_count` failure in PG adapterRyuta Kamizono2017-02-271-0/+3
* | Include selects in group query with having clauseEugene Kenny2017-02-261-1/+2
* | Suppress `DISTINCT` clause outside aggregate functionRyuta Kamizono2017-02-251-0/+11
* | Revert "Remove useless `column_alias` in `subquery_for_count`"Ryuta Kamizono2017-02-071-1/+0
* | Remove useless `column_alias` in `subquery_for_count`Ryuta Kamizono2017-02-061-2/+3
* | Require "models/post" before "models/comment"Yasuo Honda2017-01-041-1/+1
* | Remove deprecated `#uniq`, `#uniq!`, and `#uniq_value`Ryuta Kamizono2016-12-301-4/+0
* | Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-6/+6
|/
* improve error message when include assertions failMichael Grosser2016-09-161-4/+4
* Add three new rubocop rulesRafael Mendonça França2016-08-161-2/+2
* modernizes hash syntax in activerecordXavier Noria2016-08-061-18/+18
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-88/+88
* Fix Active Record test failureRyuta Kamizono2016-07-121-3/+2
* Always prefer class types to query types when casting `group`Sean Griffin2016-07-111-0/+6
* Forward ActiveRecord::Relation#count to Enumerable#count if block givenErik Michaels-Ober2016-03-191-0/+4
* remove args from assert_nothing_raised in testsTara Scherner de la Fuente2016-02-221-2/+2