Re: ruby/postgres - getting assoc array of rows? - Mailing list pgsql-interfaces

From CSN
Subject Re: ruby/postgres - getting assoc array of rows?
Date
Msg-id 20051122084932.93180.qmail@web52901.mail.yahoo.com
Whole thread Raw
In response to Re: ruby/postgres - getting assoc array of rows?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-interfaces
It looks like the snapshot version causes problems for Rails :(

http://dev.rubyonrails.org/ticket/2977
http://www.ruby-forum.com/topic/9114#new

reals and numerics get converted to values like nil, 1, 2, true, ...

I had to uninstall it and go back to the 0.71 version. The postgres.so files get installed in
different locations - perhaps I can configure Rails and commandline scripts to load the one they
need.

csn


--- Michael Fuhr <mike@fuhr.org> wrote:

> On Sun, Nov 20, 2005 at 12:28:32PM -0800, CSN wrote:
> > Ah.. I installed the snapshot manually and the script works fine now.
> > They should update the gem version - Jan. 2003 is quite a while ago.
> > Does it matter if the postgres library is installed via 'gem' or not?
> 
> I wouldn't think so, except maybe for how your program loads the
> code (require vs. require_gem).
> 
> -- 
> Michael Fuhr
> 


    
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


pgsql-interfaces by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: ruby/postgres - getting assoc array of rows?
Next
From: Bruce Momjian
Date:
Subject: Re: Not clear on what PQgetResult does