pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: CSN <cool_screen_name90001@yahoo.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: ruby/postgres - getting assoc array of rows?
Date: Sun, 20 Nov 2005 13:11:54 -0700
Message-ID: <20051120201154.GA48549@winnie.fuhr.org> (raw)
In-Reply-To: <20051120193620.68688.qmail@web52908.mail.yahoo.com>
References: <20051120155613.GB38669@winnie.fuhr.org>
	<20051120193620.68688.qmail@web52908.mail.yahoo.com>

On Sun, Nov 20, 2005 at 11:36:20AM -0800, CSN wrote:
> --- Michael Fuhr <mike@fuhr.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



view thread (10+ messages)  latest in thread

Message-ID: <20051120201154.GA48549@winnie.fuhr.org>
Permalink:  ../20051120201154.GA48549@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051120201154.GA48549@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mike@fuhr.org, cool_screen_name90001@yahoo.com
  Subject: Re: ruby/postgres - getting assoc array of rows?
  In-Reply-To: <20051120201154.GA48549@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox