I found this Error when call save method
My Rails Envi: Rails 3.2.5, sqlite 3.7.12 (in GemFile 1.3.6), latest ActiveRecord
Thanks You in Advance.
I found this Error when call save method
My Rails Envi: Rails 3.2.5, sqlite 3.7.12 (in GemFile 1.3.6), latest ActiveRecord
Thanks You in Advance.
ActiveRecord and newer versions of SQLite both support nested transactions, but the AR/SQLite adapter does not.
Further reading:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6307 http://stackoverflow.com/questions/4153719/rails-3-nested-transactions-exception-in-a-child-block
A surprising omission from the docs, given that SQLite is the default DB!
Loading development environment in sandbox (Rails 3.2.5)
Any modifications you make will be rolled back on exit
1.9.3-p194 :001 > user = User.new(name: "xxx", email: "yyy")
=> #
1.9.3-p194 :002 > user.save
(0.3ms) SAVEPOINT active_record_1 ActiveRecord::StatementInvalid: SQLite3::SQLException: near "SAVEPOINT": syntax error: SAVEPOINT active_record_1