pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Long <galizur@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: ruby-postgres for Ruby 1.9
Date: 28 Feb 2007 04:05:25 -0800
Message-ID: <1172664325.709947.125810@p10g2000cwp.googlegroups.com> (raw)


It looks like ruby-postgres needs some patching due to the changes
in rubyio.h.  I believe these two changes take care of the problem:

    /*    PQtrace(get_pgconn(obj), fp->f2?fp->f2:fp->f); */
    PQtrace(get_pgconn(obj), fp->stdio_file);

    /*    PQprint(fp->f2?fp->f2:fp->f, get_pgresult(obj), &po);*/
    PQprint(fp->stdio_file, get_pgresult(obj), &po);

I'm using the force a bit here, and assuming that the additional
pointer for rw pipes has been deprecated.   In my defense it compiles
and runs.

Who's the current maintainer of ruby-postgres?
--
Chris Long, San Diego Padres, 100 Park Boulevard, San Diego CA

It is pitch black.  You are likely to be eaten by a grue.




view thread (2+ messages)  latest in thread

Message-ID: <1172664325.709947.125810@p10g2000cwp.googlegroups.com>
Permalink:  ../1172664325.709947.125810@p10g2000cwp.googlegroups.com/
Also on:    postgresql.org/message-id/1172664325.709947.125810@p10g2000cwp.googlegroups.com

 · 

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: galizur@gmail.com
  Subject: Re: ruby-postgres for Ruby 1.9
  In-Reply-To: <1172664325.709947.125810@p10g2000cwp.googlegroups.com>

* 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