Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

sequel_pg is still trying to parse the money (and int2vector?) type. #8

Closed
chanks opened this Issue · 1 comment

2 participants

@chanks

Sequel stopped parsing the money type because it would just convert to a 0.0 BigDecimal (jeremyevans/sequel@e9a002c), but sequel_pg is still doing this:

Loading development environment (Rails 3.2.11)
1.9.3p327 :001 > c = DB[:charges].get(:amount)
 => #<BigDecimal:5fc8668,'0.0',9(9)> 

# comment out sequel_pg in the Gemfile

Loading development environment (Rails 3.2.11)
1.9.3p327 :001 > c = DB[:charges].get(:amount)
 => "$10.00" 

I haven't tested int2vector since I'm unfamiliar with it, but it was removed from Sequel in the same commit, so it may be doing the same.

Thanks!

@jeremyevans
Owner

Good catch, I'll fix this on Monday and push out a new gem.

@jeremyevans jeremyevans closed this issue from a commit
@jeremyevans Remove type conversion of int2vector and money types on PostgreSQL, s…
…ince previous conversions were wrong (Fixes #8)

A similar change was made in Sequel about 6 months ago.

Bump version to 1.6.4.
a9afad3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.