问题
I have a Rails app using sqlite3. Anytime I want to save anything in test environment I'm getting the following error:
ActiveRecord::StatementInvalid:
SQLite3::SQLException: near "SAVEPOINT": syntax error: SAVEPOINT active_record_1
In development, everything works fine. I'm using Rails 3.2.7.
回答1:
You should upgrade your OS default version of Sqlite
http://shynnergy.com/2012/07/savepoint-exception-with-rails-3-1-on-jenkins/
来源:https://stackoverflow.com/questions/12017182/rails-activerecord-sqlite3-cant-save-records-in-test-environment