This project is archived and is in readonly mode.

#5635 ✓resolved
noelp

postgresql_adapter doesn't disable referential integrity for pg 9.0

Reported by noelp | September 15th, 2010 @ 10:26 PM

When running tests, referential integrity is not disabled for PG 9.0. The method supports_disbale_referential_integrity? in the active_record/connection_adapters/postgresql_adapter.rb checks for versions greater than 8 AND with a minor version greater than 1. So, it does not correctly handle PG 9.0.

I have a patch that uses the scaler postgresql_version that is widely used in the module. The patch also fixes the module's parsing of version revisions when a release number is missing (9.0 vs 9.0.1).

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages