Please sign in to comment.
Allow postgresql enum_test to be run in random order.
Creating and dropping similar tables within the same connection causes postgresql to look up old values in the cache of tables which have already been dropped.
- Loading branch information...
Showing with 21 additions and 9 deletions.
|@@ -0,0 +1,8 @@|
|+ # Make sure to drop all cached query plans to prevent invalid reference errors like:|
|+ # cache lookup failed for type XYZ|
|+ def reset_pg_session|
|+ original_connection = ActiveRecord::Base.remove_connection|