aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* Remove legacy mysql adapterRyuta Kamizono2015-12-211-2/+2
* Remove legacy mysql adapterAbdelkader Boudih2015-12-171-1/+1
* Fix generated projection fields in group by queryRafael Sales2015-10-221-0/+5
* Merge pull request #20653 from repinel/allow-arel-select-countSean Griffin2015-10-201-0/+52
|\
| * Allow select with Arel and count as well as calculations with ArelRoque Pinel2015-06-301-0/+52
* | Qualify column names in calculationSoutaro Matsumoto2015-10-201-0/+19
* | Fix AC::Parameters not being sanitized for query methods.Guo Xiang Tan2015-10-021-0/+32
|/
* Use `Enumerable#sum` on `ActiveRecord::Relation` when a block is givenSean Griffin2015-06-191-0/+10
* Fix postgresql DISTINCT requirement in pluck testKevin Deisz2015-06-021-2/+2
* Allow Enumerable#pluck to take a splat.Kevin Deisz2015-05-291-0/+21
* deprecate `Relation#uniq` use `Relation#distinct` instead.Yves Senn2015-05-261-3/+6
* Fix referencing wrong aliases while joining tables of has many throughpinglamb2015-03-221-0/+11
* Allow a symbol to be passed to `attribute`, in place of a type objectSean Griffin2015-02-061-3/+3
* Don't error when grouped calculations return 0 recordsSean Griffin2015-01-281-0/+5
* Add test case for joined pluckSean Griffin2014-12-111-0/+7