adddresses ruby 1.9/1.8 compat issue in PostgreSQLAdapter. Closes gh-14

This commit is contained in:
James B. Byrne 2010-09-02 10:57:57 -06:00 committed by Ben Mabey
parent de440ecdf0
commit 04ba63bfee
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ of the hours and effort he put into making this feature request a reality.
=== Bugfixes
* Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
* Addresses Ruby 1.9 and 1.8 differences causing a bug in the AR PostgreSQLAdapter truncation strategy. (GH-14, James B. Byrne)
== 0.5.2

View File

@ -46,7 +46,7 @@ module ActiveRecord
@db_version ||= connection.select_values(
"SELECT CHARACTER_VALUE
FROM INFORMATION_SCHEMA.SQL_IMPLEMENTATION_INFO
WHERE IMPLEMENTATION_INFO_NAME = 'DBMS VERSION' ").to_s
WHERE IMPLEMENTATION_INFO_NAME = 'DBMS VERSION' ").join.to_s
end
def self.cascade