Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix literalization of SQL::Blobs in DataObjects and JDBC adapter's po…
…stgresql subadapters when ruby 1.9 is used This code previously expected String#[] to return a Fixnum, but it returns a String in ruby 1.9. Change the code so that it works in both ruby 1.8 and ruby 1.9. Refactor the literalization code in the postgres adapters and subadapters so that that the shared PostgreSQL adapter has code that doesn't depend on the underlying adapter. The native postgres adapter now overrides #literal to use the versions present in the adapters, as does the JDBC postgres adapter for strings.
- Loading branch information
1 parent
754bb49
commit 5f80e6d
Showing
5 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters