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

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ruby/postgres - getting assoc array of rows?
Date: 2005-11-20 20:11:54
Message-ID: 20051120201154.GA48549@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message CSN 2005-11-20 20:28:32 Re: ruby/postgres - getting assoc array of rows?
Previous Message CSN 2005-11-20 19:36:20 Re: ruby/postgres - getting assoc array of rows?