aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/statement_cache_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Autocorrect `refute` RuboCop violationsDaniel Colson2018-04-031-1/+1
| | | | | | 73e7aab behaved as expected on codeship, failing the build with exactly these RuboCop violations. Hopefully `rubocop -a` will have been enough to get a passing build!
* Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the futureRyuta Kamizono2017-12-141-3/+0
| | | | Follow up of #31432.
* Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-041-8/+8
| | | | | | Actually `StatementCache#execute` is always passed the same klass that the owner klass of the connection when the statement cache is created. So passing `klass` to `StatementCache.new` will make more DRY.
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Refactor `test_find_by_does_not_use_statement_cache_if_table_name_is_changed`kenta-s2017-02-131-2/+2
|
* Make `table_name=` reset current statement cachenamusyaka2017-02-121-0/+26
| | | | | | So queries are not run against the previous table name. Closes #27953
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
|
* modernizes hash syntax in activerecordXavier Noria2016-08-061-2/+2
|
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Prepared statements shouldn't share a cache with unprepared statementsSean Griffin2016-03-311-0/+12
| | | | | | | | | When prepared statements are enabled, the statement cache caches the SQL directly, including the bind parameters. If a similar query is run later with prepared statements disabled, we need to use a separate cache instead of trying to share the same one. Fixes #24351
* use an array for bind params to simplify substitutionAaron Patterson2014-04-121-10/+10
|
* decouple the factory method from the constructing modelAaron Patterson2014-04-101-5/+5
| | | | | | The factory method only requires the constructing model to get the connection object. Since the model is available when calling the factory method, we can just pass the appropriate connection in.
* remove intelligence from StatementCache#initializeAaron Patterson2014-04-101-5/+5
|
* stop caching the class on the statement cache objectAaron Patterson2014-04-101-8/+8
|
* change query strategy based on adapterAaron Patterson2014-01-161-1/+0
|
* use a params hash so we know what bind parameters are usedAaron Patterson2014-01-151-15/+16
|
* fix statement cache executionAaron Patterson2014-01-141-7/+6
|
* fix cache class interfaceAaron Patterson2014-01-141-17/+9
|
* Initial commit for select statements bindparam implementationNoemj2013-05-151-1/+44
|
* cleanup statement cache testVipul A M2013-04-111-4/+4
|
* Merge pull request #10152 from Noemj/statement_cacheRafael Mendonça França2013-04-101-5/+5
| | | | | | | Statement cache Conflicts: activerecord/CHANGELOG.md
* Added statement cacheNoemj2013-04-101-0/+64