dockyard/postgres_ext — pull request #52 by amonat (2013-01-22 20:54:19+00:00)
Title: Force correct character encoding on :text columns.

Hi,

I found a bug where if you've got a column that's a text[], then it doesn't get set to the right character encoding, whereas other string array columns like character varying(255)[] do get set to the right encoding. Here's code that fixes it. I'm not sure if the duplication introduced in array_spec.rb between the 'string array' and 'text array' contexts is ok, and if not how to improve it, as I'm pretty new to rspec and let!. I believe I followed all the contribution guidelines at https://github.com/patientslikeme/postgres_ext/blob/master/CONTRIBUTING.md

Fixes a bug where a text[] column will result in an array of strings
encoded as ASCII-8BIT, regardless of the database's encoding.