aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Add tests for selecting aggregatesGodfrey Chan2019-08-011-0/+84
* Do not use aliases in GROUP BY clauseRyuta Kamizono2019-07-081-0/+7
* PostgreSQL: Fix GROUP BY with ORDER BY virtual count attributeRyuta Kamizono2019-06-171-0/+6
* All modern adapters returns a numeric value as the result of numeric calculationRyuta Kamizono2019-06-111-5/+1
* Address test_pluck_columns_with_same_name failure due to nondeterministic sor...Yasuo Honda2019-06-021-1/+1
* Use `capture_sql` instead of `assert_sql` with no patternRyuta Kamizono2019-05-221-9/+6
* Give up filling schema cache before `assert_no_queries`Ryuta Kamizono2019-05-221-6/+3
* Fix GROUP BY with calculate longer name field to respect `table_alias_length`Ryuta Kamizono2019-04-081-0/+11
* Fix `count(:all)` with eager loading and explicit select and orderRyuta Kamizono2019-04-041-0/+6
* Merge pull request #35361 from jvillarejo/fix_wrong_size_query_with_distinct_...Ryuta Kamizono2019-02-271-0/+18
|\
| * fixes different `count` calculation when using `size` manual `select` with DI...jvillarejo2019-02-261-0/+18
|/
* Remove duplicated protected params definitionsRyuta Kamizono2019-02-241-20/+2
* More exercise tests for distinct count with group byRyuta Kamizono2019-02-241-2/+16
* Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-2/+3
* All of queries should return correct result even if including large numberRyuta Kamizono2019-01-181-2/+2
* Do not allow passing the column name to `sum` when a block is passedRafael Mendonça França2019-01-171-3/+3
* Do not allow passing the column name to `count` when a block is passedRafael Mendonça França2019-01-171-3/+3
* 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