This project is archived and is in readonly mode.

supports_disable_referential_integrity? is wrong
Reported by Marcin Mańk | April 5th, 2011 @ 11:40 AM
supports_disable_referential_integrity? in postgresql adapter on 2.3 stable looks like this:
def supports_disable_referential_integrity?() #:nodoc:
version = query("SHOW server_version")[0][0].split('.')
(version[0].to_i >= 8 && version[1].to_i >= 1) ? true : false
rescue
return false
end
So it returns false for 9.0.x , which is wrong.
The correct version is in 3.0 branch:
def supports_disable_referential_integrity?()
postgresql_version >= 80100
end
Anybody cares to backpatch?
No comments found
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>