Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add after_commit and after_rollback callbacks to ActiveRecord that are ↵ | Brian Durand | 2010-04-29 | 1 | -14/+47 |
| | | | | | | | | 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> | ||||
* | squelching more warnings in the AR tests. [#4218 state:resolved] | Aaron Patterson | 2010-03-18 | 1 | -6/+32 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Refactor new callbacks and AR implementation. | José Valim | 2009-09-08 | 1 | -6/+6 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -5/+5 |
| | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | SQLite adapters now support DDL transactions [#2080 state:resolved] | Jason King | 2009-03-14 | 1 | -5/+10 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -2/+2 |
| | | | | [#1617 state:resolved] | ||||
* | Revert "Wrap calls to update_attributes in a transaction." | Michael Koziarski | 2009-02-22 | 1 | -34/+0 |
| | | | | | | | This caused failures on sqlite, sqlite3 and postgresql This reverts commit fc09ebc669bd58f415f7d3ef932ef02dab821ab5. [#922 state:reopened] | ||||
* | Wrap calls to update_attributes in a transaction. | Xavier Noria | 2009-02-22 | 1 | -0/+34 |
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#922 state:committed] | ||||
* | Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha. | Jeremy Kemper | 2009-02-03 | 1 | -18/+14 |
| | |||||
* | Fix PostgreSQL unit test failures that only occur when using the old ↵ | Hongli Lai (Phusion) | 2009-01-13 | 1 | -2/+1 |
| | | | | | | | | '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 | -4/+4 |
| | | | | | | 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] | ||||
* | Reimplement Jeremy's PostgreSQL automatic transaction state introspection code. | Hongli Lai (Phusion) | 2008-11-03 | 1 | -0/+34 |
| | | | | | | - Fixed compatibility with the old 'postgres' driver which doesn't support transaction state introspection. - Added unit tests for it. | ||||
* | Rename ActiveRecord::Base#transaction's :force option to :nest. Improve ↵ | Hongli Lai (Phusion) | 2008-11-03 | 1 | -5/+5 |
| | | | | documentation for nested transactions. | ||||
* | Make SQLite3 pass the unit tests for savepoints. | Hongli Lai (Phusion) | 2008-11-03 | 1 | -4/+4 |
| | |||||
* | Fix a stale typo in the PostgreSQL adapter. Fix a stale mock expection in ↵ | Hongli Lai (Phusion) | 2008-11-03 | 1 | -1/+0 |
| | | | | transaction_test. | ||||
* | Implement savepoints. | Jonathan Viney | 2008-11-03 | 1 | -0/+132 |
| | |||||
* | Default connection allow_concurrency to false (for PostgreSQL) | Nick Sieger | 2008-09-04 | 1 | -0/+2 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix transaction exception test | Jeremy Kemper | 2008-09-04 | 1 | -0/+1 |
| | |||||
* | Make clear_active_connections! also return stale connections back to the pool | Nick Sieger | 2008-08-29 | 1 | -3/+0 |
| | | | | - also clean up some cruft remaining from per-thread connection cache | ||||
* | Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵ | Nick Sieger | 2008-08-29 | 1 | -0/+3 |
| | | | | fixed pool with default maximum of 5 connections | ||||
* | Deprecate allow_concurrency and make it have no effect | Nick Sieger | 2008-08-29 | 1 | -11/+0 |
| | |||||
* | Rollback the transaction when a before_* callback returns false. | Xavier Noria | 2008-08-24 | 1 | -2/+60 |
| | | | | | | | Previously this would have committed the transaction but not carried out save or destroy operation. [#891 state:committed] Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Ensure add_column gives valid error for sqlite. [Gunnar Wolf, Pratik] [#197 ↵ | Pratik Naik | 2008-05-20 | 1 | -0/+26 |
| | | | | | | | | state:resolved] SQLite#add_column executes "VACUUM", which fails if inside a live transaction. This patch ensures a valid exception is raised if add_column is executed within a live transaction for sqlite adapter. | ||||
* | Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails | Jeremy Kemper | 2008-01-21 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix paths | Jeremy Kemper | 2008-01-18 | 1 | -3/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Move tests to cases | Jeremy Kemper | 2008-01-18 | 1 | -0/+281 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |