ruby-postgres for Ruby 1.9

C

Chris Long

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?
 
J

Jeff Davis

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?
--

Dave Lee is the current maintainer, (e-mail address removed), and I have
quite a few fixes that I'd like applied as well. He's been busy for the
past few months, so I haven't had much luck getting the fixes in. He's
supposed to be giving me read access to the repository so I can at least
see what he's committing to it, but I've been waiting on that for a
while, too.

Overall, the module needs a substantial amount of work (it's still using
deprecated API functions, for instance).

Regards,
Jeff Davis

PS: He has another email address also, but I don't want to post that on
a public list for obvious reasons.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top