
DataMapper PostgreSQL encodings don't work on Heroku
Reported by Ashley Moran | October 2nd, 2009 @ 08:39 AM
We're deploying our app to Heroku. Heroku generates a database.yml file for you, which includes the key "encoding: unicode". The DataObjects PostgreSQL adapter doesn't recognise this, so you can't connect to the database. We fixed it with the following monkeypatch:
module DataObjects
module Postgres
module Encoding
MAP["unicode"] = "UTF8"
end
end
end
Comments and changes to this ticket
-
Dan Kubb (dkubb) October 2nd, 2009 @ 03:37 PM
- State changed from new to unconfirmed
- Assigned user set to Dirkjan Bussink
-
Dirkjan Bussink October 2nd, 2009 @ 03:44 PM
Strange, DataObjects should fallback to UTF8 if the encoding is not known. What is exact error message you're getting?
Did you also report this issue to Heroku?
-
Dan Kubb (dkubb) May 26th, 2010 @ 02:31 AM
- State changed from unconfirmed to not-applicable
I am going to close this ticket because there has been no updates or activity in a long time. Please reopen if more information becomes available.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »