activerecord4-redshift-adapter icon indicating copy to clipboard operation
activerecord4-redshift-adapter copied to clipboard

RSpec does not work

Open aamine opened this issue 11 years ago • 1 comments

Current implementation does not work with RSpec, because of fixture cleaning issue. database_cleaner does not work, too. Avoiding SAVEPOINT may resolve this problem.

aamine avatar Aug 07 '13 02:08 aamine

Error message from ActiveRecord:

     ActiveRecord::StatementInvalid:
       PG::Error: ERROR:  SQL command "SAVEPOINT active_record_1" not supported.
       : SAVEPOINT active_record_1

It seems that ActiveRecord utilize nested save points, we cannot avoid SAVEPOINT... database_cleaner (with truncation scheme) is the last resort.

aamine avatar Aug 07 '13 03:08 aamine