Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Support nested transactions via savepoints in SQLite 3.6.8 and newer

#6307

ActiveRecord supports nested transactions using savepoints, and SQLite supports savepoints in versions 3.6.8 and newer. ActiveRecord currenly does not, however, seem to implement nested transactions for SQLite, even when using 3.7.x versions.

I tested this using ActiveRecord 3.0.3, SQLite 3.7.2, and version 1.3.3 of the sqlite3 gem, and rollback is ignored for inner transactions. Only the outermost transaction can actually be rolled back. Also, from the Rails console...

ActiveRecord::Base.connection.supports_savepoints? => false

Reported by Steve Jorgensen · January 18th, 2011 @ 09:08 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Steve Jorgensen
    Steve Jorgensen

    That formatting didn't come out right. Let's try that console i/o again...

    > ActiveRecord::Base.connection.supports_savepoints?

    => false

    January 18th, 2011 @ 09:10 AM

  2. rails
    rails
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    April 19th, 2011 @ 01:00 AM

  3. rails
    rails
    • State changed from open to stale

    April 19th, 2011 @ 01:00 AM