activerecord-postgres-array icon indicating copy to clipboard operation
activerecord-postgres-array copied to clipboard

PG::InvalidTextRepresentation

Open abstractcoder opened this issue 11 years ago • 11 comments

Upgrading to v0.0.10 breaks my current application.

PG::InvalidTextRepresentation: ERROR:  array value must start with "{" or dimension information

I receive this error if the array is empty, haven't tested with an array with values.

Version v0.0.9, which doesn't throw error

["modifier_ids", "{}"]

Version v0.0.10, which throws error

["modifier_ids", "'{}'"]

I'm on Postgres 9.1.3.

abstractcoder avatar Sep 17 '13 21:09 abstractcoder

Same here.

kostia avatar Sep 17 '13 22:09 kostia

Same here. It seems this is introduced in commit c9b7928. Any ideas why these single quotes were introduced here?

leovandriel avatar Oct 02 '13 09:10 leovandriel

Same here. Any working fixes?

ckruse avatar Oct 14 '13 11:10 ckruse

I'm having the same problem. Any ideas?

jmolina4 avatar Oct 18 '13 07:10 jmolina4

Same here, pleaeaease fix.

jvdijk avatar Oct 18 '13 08:10 jvdijk

Same problem here. Downgrade to 0.0.9 makes it work.

ipadolaf avatar Oct 21 '13 11:10 ipadolaf

Had the same problem, downgraded to 0.0.9

BartlomiejSkwira avatar Dec 20 '13 11:12 BartlomiejSkwira

Hi everyone. As you've probably noticed I am no longer maintaining this project. The main reasons being that I no longer have the luxury of working with PosgreSQL. If someone here would be willing to take over maintenance I could give them write access, or alternatively I could create a new github account and transfer the repo over.

tlconnor avatar Dec 20 '13 16:12 tlconnor

Hi Tim, thanks for the work so far. I have to pass your offer, since I'm upgraded to Rails 4 recently and removed the gem.

leovandriel avatar Dec 20 '13 17:12 leovandriel

The same here, downgraded to 0.0.9 and everything working again. Thanks @tlconnor for the hard work.

jfcalvo avatar Apr 10 '14 22:04 jfcalvo

My 2c: Rails 4 has native support for array, hstore and json. Upgrading is really worth it. :smiley:

~Marcello

~ [email protected] ~ http://sindro.me/

On 11 Apr 2014, at 00:21, José Francisco Calvo [email protected] wrote:

The same here, downgraded to 0.0.9 and everything working again. Thanks @tlconnor for the hard work.

— Reply to this email directly or view it on GitHub.

vjt avatar Apr 10 '14 22:04 vjt