On 5/25/06, Ashley Moran <work@ashleymoran.me.uk>
wrote:> On Thursday 25 May 2006 04:16, Pat Maddox wrote:
> > I need to do some precise math, going to 12-14 decimal places, so
I''m
> > using BigDecimal. How can I store this in a db? I''m using
postgresql
> > 8.1.0, if that matters at all. I found a plugin [1] but it gives me
> > the error "You have a nil object when you didn''t expect
it! The error
> > occurred while evaluating nil.each_pair," with no line number.
The
> > plugin itself never calls #each_pair, so it has to be somewhere inside
> > Rails or the postgres adapter. I''m using Rails 1.1.2 and the
postgres
> > 0.7.1 adapter.
>
> Hi Pat
>
> I wrote that :)
>
> Can you be more specific about what you are trying to do? Maybe I can help
> track down the issue.
>
> Ashley
>
> --
> "If you do it the stupid way, you will have to do it again"
> - Gregory Chudnovsky
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
Hey Ashley,
I''m using Duane Johnson''s column_comments plugin [1], and
that''s where
the error popped up. I''m not entirely sure why the error occurs, as I
just wrapped the problem code in an "unless cols.nil?...end" block.
Anyway it''s nothing wrong with your plugin. Now schema dumps actually
work :) Thanks for doing this, and I''ll look into the column_comments
plugin and get a solution for Duane.
Pat
[1] http://blog.inquirylabs.com/2006/04/27/columncomments-rails-plugin/