Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵ | Jon Leighton | 2011-08-08 | 1 | -14/+23 | |
| | | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now. | |||||
* | Merge branch 'master' of github.com:rails/rails | Xavier Noria | 2011-05-25 | 1 | -29/+2 | |
|\ | ||||||
| * | removed deprecated methods, and related tests, from ActiveRecord | Josh Kalderimis | 2011-05-25 | 1 | -29/+2 | |
| | | ||||||
* | | Remove extra white spaces on ActiveRecord docs. | Sebastian Martinez | 2011-05-23 | 1 | -2/+2 | |
|/ | ||||||
* | use a null byte as a bind parameter substitute as it is not allowed in ↵ | Aaron Patterson | 2011-05-09 | 1 | -9/+1 | |
| | | | | normal SQL. fixes #411, #417 | |||||
* | using bind parameters for updates | Aaron Patterson | 2011-04-30 | 1 | -4/+11 | |
| | ||||||
* | postgresql supports prepare statement deletes | Aaron Patterson | 2011-04-29 | 1 | -2/+9 | |
| | ||||||
* | Use existing #empty_insert_statement_value for an insert with no columns. | Ken Collins | 2011-04-24 | 1 | -4/+0 | |
| | ||||||
* | Move #exec_insert to abstract adapter's database statements. | Ken Collins | 2011-04-22 | 1 | -0/+7 | |
| | ||||||
* | insert statements are prepared, but values are not escaped properly | Aaron Patterson | 2011-04-14 | 1 | -2/+20 | |
| | ||||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-03-23 | 1 | -1/+0 | |
|\ | ||||||
| * | remove bank line | Paco Guzman | 2011-03-18 | 1 | -1/+0 | |
| | | ||||||
* | | pushing id insertion and prefetch primary keys down to Relation#insert | Aaron Patterson | 2011-03-22 | 1 | -0/+4 | |
|/ | ||||||
* | fixture should quack like a hash | Aaron Patterson | 2011-02-11 | 1 | -1/+9 | |
| | ||||||
* | Allow limit values to accept an ARel SQL literal. | Ken Collins | 2011-02-09 | 1 | -3/+7 | |
| | ||||||
* | limit() should sanitize limit values | Aaron Patterson | 2011-02-08 | 1 | -15/+15 | |
| | | | | This fixes CVE-2011-0448 | |||||
* | require ActiveSupport deprecatation file before using deprecate method in ↵ | Raimonds Simanovskis | 2011-01-04 | 1 | -0/+2 | |
| | | | | | database_statements otherwise when using external ActiveRecord adapters (e.g. Oracle) database_statements might be loaded before active_support/core_ext/module/deprecation which results in NoMethodError (commit 60cf65def805995bcca184c40b44bb01d86a48aa added "deprecate" call to database_statements.rb) | |||||
* | herp derpricating add_limit_offset! | Aaron Patterson | 2011-01-03 | 1 | -0/+3 | |
| | ||||||
* | converted exec to exec_query for sqlite | Aaron Patterson | 2010-11-05 | 1 | -1/+1 | |
| | ||||||
* | renaming bind_values to binds where it makes sense | Aaron Patterson | 2010-10-26 | 1 | -6/+6 | |
| | ||||||
* | adding backwards compatibility for non-prepare statement handling drivers | Aaron Patterson | 2010-10-26 | 1 | -2/+16 | |
| | ||||||
* | exec returns an AR::Result | Aaron Patterson | 2010-10-26 | 1 | -3/+3 | |
| | ||||||
* | adding the abstract method | Aaron Patterson | 2010-10-26 | 1 | -0/+6 | |
| | ||||||
* | third parameter is not used | Aaron Patterson | 2010-09-26 | 1 | -1/+1 | |
| | ||||||
* | Fix bug with rolling back frozen attributes. | Brian Durand | 2010-06-18 | 1 | -2/+2 | |
| | | | | | | [#2991] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Revert "Temporarily revert "Update after_commit and after_rollback docs and ↵ | Jeremy Kemper | 2010-06-08 | 1 | -0/+56 | |
| | | | | | | | | tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."" This reverts commit 1b2941cba1165b0721f57524645fe378bee2a950. [#2991] | |||||
* | Temporarily revert "Update after_commit and after_rollback docs and tests to ↵ | Jeremy Kemper | 2010-06-08 | 1 | -56/+0 | |
| | | | | | | | | | | | | | | use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction." This reverts commits d2a49e4b1f30c5997e169110eed94a55aee53f56 and da840d13da865331297d5287391231b1ed39721b. [#2991] Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/transactions.rb activerecord/test/cases/transaction_callbacks_test.rb | |||||
* | Add after_commit and after_rollback callbacks to ActiveRecord that are ↵ | Brian Durand | 2010-04-29 | 1 | -0/+56 | |
| | | | | | | | | called after transactions either commit or rollback on all records saved or destroyed in the transaction. [#2991 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Add add_limit_offset! to adapters. | Emilio Tagua | 2010-03-25 | 1 | -0/+23 | |
| | ||||||
* | avoid @transaction_joinable not initialized warning | Santiago Pastorino | 2010-02-22 | 1 | -1/+1 | |
| | ||||||
* | Remove locking related unused code | Pratik Naik | 2009-12-28 | 1 | -12/+0 | |
| | ||||||
* | Create is now powered by Arel. Removed methods that are no longer used. | Emilio Tagua | 2009-07-01 | 1 | -2/+2 | |
| | ||||||
* | Removed unused methods. | Emilio Tagua | 2009-06-23 | 1 | -27/+0 | |
| | ||||||
* | Refactors to work with latest Arel implementation. | Emilio Tagua | 2009-06-02 | 1 | -2/+2 | |
| | ||||||
* | Fix PostgreSQL unit test failures that only occur when using the old ↵ | Hongli Lai (Phusion) | 2009-01-13 | 1 | -4/+8 | |
| | | | | | | | | 'postgres' driver. [#1748 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Introduce transaction_joinable flag to mark that the fixtures transaction ↵ | Jeremy Kemper | 2009-01-10 | 1 | -15/+16 | |
| | | | | | | can't joined, a new savepoint is required even if :requires_new is not set. Use :requires_new option instead of :nest. Update changelog. [#383 state:committed] | |||||
* | Merge commit 'origin/master' into savepoints | Hongli Lai (Phusion) | 2008-12-03 | 1 | -4/+4 | |
|\ | | | | | | | | | | | Conflicts: activerecord/lib/active_record/fixtures.rb activerecord/test/cases/defaults_test.rb | |||||
| * | undef abstract methods instead of raising NotImplementedError. Still need ↵ | Jeremy Kemper | 2008-11-07 | 1 | -4/+4 | |
| | | | | | | | | the definitions for rdoc though. | |||||
* | | Reimplement Jeremy's PostgreSQL automatic transaction state introspection code. | Hongli Lai (Phusion) | 2008-11-03 | 1 | -2/+18 | |
| | | | | | | | | | | | | - Fixed compatibility with the old 'postgres' driver which doesn't support transaction state introspection. - Added unit tests for it. | |||||
* | | Improve documentation for DatabaseStatements#transactions and ↵ | Hongli Lai (Phusion) | 2008-11-03 | 1 | -6/+69 | |
| | | | | | | | | AbstractAdapter#transactional_fixtures, especially with regard to support for nested transactions. | |||||
* | | Implement savepoints. | Jonathan Viney | 2008-11-03 | 1 | -6/+10 | |
|/ | ||||||
* | Add documentation for AbstractAdapter#sanitize_limit, and make its code more ↵ | Hongli Lai (Phusion) | 2008-10-09 | 1 | -4/+15 | |
| | | | | | | | readable. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1068 status:committed] | |||||
* | Merge docrails | Pratik Naik | 2008-10-05 | 1 | -1/+7 | |
| | ||||||
* | Support :limit on update_all so that has_many with :limit can be safely updated | Tarmo Tänav | 2008-09-10 | 1 | -0/+4 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | validates_uniqueness_of uses database case sensitivity support instead of ↵ | Tarmo Tänav | 2008-07-31 | 1 | -0/+4 | |
| | | | | | | using ruby Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Added SQL escaping for :limit and :offset [#288 state:closed] (Aaron Bedra, ↵ | David Heinemeier Hansson | 2008-05-31 | 1 | -2/+7 | |
| | | | | Steven Bristol, Jonathan Wiess) | |||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -2/+2 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva] | Marcel Molina | 2007-11-08 | 1 | -2/+3 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Quote table names. Defaults to column quoting. Closes #4593. | Jeremy Kemper | 2007-10-16 | 1 | -2/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Send the correct INSERT statement when dealing with objects with only ↵ | Michael Koziarski | 2007-10-06 | 1 | -0/+4 | |
| | | | | | | primary keys. Closes #9523 [tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |