本文介绍了轨道/ ActiveRecord的/ SQLite3的:不能保存在测试环境中记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用sqlite3的一个Rails应用程序。每次我要保存在测试环境中,我发现了以下错误什么:
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
在发展,一切工作正常。我用Rails 3.2.7。
In development, everything works fine. I'm using Rails 3.2.7.
推荐答案
您应该升级的SQLite你的操作系统缺省版本
You should upgrade your OS default version of Sqlite
http://shynnergy.com / 2012/07 /保存点异常带护栏-3-1-ON-詹金斯/
这篇关于轨道/ ActiveRecord的/ SQLite3的:不能保存在测试环境中记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!