This project is archived and is in readonly mode.

#6307 ✓stale
Steve Jorgensen

Support nested transactions via savepoints in SQLite 3.6.8 and newer

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

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

Comments and changes to this ticket

  • Steve Jorgensen

    Steve Jorgensen January 18th, 2011 @ 09:10 AM

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

    > ActiveRecord::Base.connection.supports_savepoints?

    => false

  • rails

    rails April 19th, 2011 @ 01:00 AM

    • 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.

  • rails

    rails April 19th, 2011 @ 01:00 AM

    • State changed from “open” to “stale”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages