Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Passing `klass` to `StatementCache.new` | Ryuta Kamizono | 2017-08-04 | 1 | -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 ActiveRecord | Kir Shatrov | 2017-07-19 | 1 | -0/+2 |
| | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Refactor `test_find_by_does_not_use_statement_cache_if_table_name_is_changed` | kenta-s | 2017-02-13 | 1 | -2/+2 |
| | |||||
* | Make `table_name=` reset current statement cache | namusyaka | 2017-02-12 | 1 | -0/+26 |
| | | | | | | So queries are not run against the previous table name. Closes #27953 | ||||
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -1/+0 |
| | |||||
* | modernizes hash syntax in activerecord | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | |||||
* | applies new string literal convention in activerecord/test | Xavier Noria | 2016-08-06 | 1 | -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 statements | Sean Griffin | 2016-03-31 | 1 | -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 substitution | Aaron Patterson | 2014-04-12 | 1 | -10/+10 |
| | |||||
* | decouple the factory method from the constructing model | Aaron Patterson | 2014-04-10 | 1 | -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#initialize | Aaron Patterson | 2014-04-10 | 1 | -5/+5 |
| | |||||
* | stop caching the class on the statement cache object | Aaron Patterson | 2014-04-10 | 1 | -8/+8 |
| | |||||
* | change query strategy based on adapter | Aaron Patterson | 2014-01-16 | 1 | -1/+0 |
| | |||||
* | use a params hash so we know what bind parameters are used | Aaron Patterson | 2014-01-15 | 1 | -15/+16 |
| | |||||
* | fix statement cache execution | Aaron Patterson | 2014-01-14 | 1 | -7/+6 |
| | |||||
* | fix cache class interface | Aaron Patterson | 2014-01-14 | 1 | -17/+9 |
| | |||||
* | Initial commit for select statements bindparam implementation | Noemj | 2013-05-15 | 1 | -1/+44 |
| | |||||
* | cleanup statement cache test | Vipul A M | 2013-04-11 | 1 | -4/+4 |
| | |||||
* | Merge pull request #10152 from Noemj/statement_cache | Rafael Mendonça França | 2013-04-10 | 1 | -5/+5 |
| | | | | | | | Statement cache Conflicts: activerecord/CHANGELOG.md | ||||
* | Added statement cache | Noemj | 2013-04-10 | 1 | -0/+64 |