Skip site navigation (1) Skip section navigation (2)

Re: ruby/postgres - getting assoc array of rows?

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ruby/postgres - getting assoc array of rows?
Date: 2005-11-20 20:28:32
Message-ID: 20051120202833.53565.qmail@web52915.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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?

Thanks again for your help!
csn


--- Michael Fuhr <mike(at)fuhr(dot)org> wrote:

> On Sun, Nov 20, 2005 at 11:36:20AM -0800, CSN wrote:
> > --- Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> > > What versions of Ruby and ruby-postgres are you using?  Did you use
> > > exactly the code I posted or did you do something different?  The
> > > only way to get a PGrow object (other than building it yourself)
> > > is from PGresult#each or some method that calls it, so this won't
> > > work:
> > 
> > I'm using Ruby 1.8 and postgres 0.7.1 (installed via gem).
> 
> That explains it.  I've been using the ruby-postgres-20050412
> snapshot; I just grabbed the 0.7.1 source code and it doesn't have
> the PGrow type, nor the PGconn.new syntax that I've been using.
> 
> I see that a 20051119 snapshot is now available:
> 
> http://ruby.scripting.ca/postgres/
> 
> -- 
> Michael Fuhr
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

In response to

Responses

pgsql-interfaces by date

Next:From: Michael FuhrDate: 2005-11-21 02:04:02
Subject: Re: ruby/postgres - getting assoc array of rows?
Previous:From: Michael FuhrDate: 2005-11-20 20:11:54
Subject: Re: ruby/postgres - getting assoc array of rows?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group