Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | 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 | |||||
* | Fixed spelling errors (closes #9706) [tarmo/rmm5t] | David Heinemeier Hansson | 2007-09-28 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Don't worry about retrieving the last inserted id. [tarmo_t] | Jeremy Kemper | 2007-09-17 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Speed up and simplify query caching. | Jeremy Kemper | 2007-09-17 | 1 | -8/+27 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | connection.select_rows 'sql' returns an array (rows) of arrays (field ↵ | Jeremy Kemper | 2007-09-16 | 1 | -2/+6 | |
| | | | | | | values). Closes #2329. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | minor speedups + forward-compat syntax | Jeremy Kemper | 2007-09-13 | 1 | -2/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Mock the beginning of the transaction also. References #8642. | Jeremy Kemper | 2007-06-23 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7089 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Rollback if commit raises an exception. Closes #8642. | Jeremy Kemper | 2007-06-23 | 1 | -2/+9 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Oracle binary fixtures; pull fixture insertion into the adapters. Closes #7987. | Jeremy Kemper | 2007-05-26 | 1 | -0/+6 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6859 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Replace the transaction {|transaction|..} semantics with a new Exception ↵ | Michael Koziarski | 2007-05-18 | 1 | -8/+3 | |
| | | | | | | ActiveRecord::Rollback. Closes #8030 [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Added database connection as a yield parameter to ↵ | David Heinemeier Hansson | 2007-02-21 | 1 | -1/+6 | |
| | | | | | | ActiveRecord::Base.transaction so you can manually rollback [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Oracle: resolve test failures, use prefetched primary key for inserts, check ↵ | Jeremy Kemper | 2006-11-01 | 1 | -4/+19 | |
| | | | | | | for null defaults. Factor out some common methods from all adapters. Closes #6515. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |