pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql_perl5-1.9.0 / Pg - patch for PQescapeString
3+ messages / 2 participants
[nested] [flat]

* pgsql_perl5-1.9.0 / Pg - patch for PQescapeString
@ 2006-04-04 22:47  patrick keshishian <pkeshish@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: patrick keshishian @ 2006-04-04 22:47 UTC (permalink / raw)
  To: pgsql-interfaces

Greetings all,

I just wanted to send you the attached patch which adds the
PQescapeString interface to the Pg module.

Earlier today, I forwarded this patch to Edmund Mergl
<e {dot} mergl {at} bawue {dot} de>, he suggested that
I should forward this patch to the appropriate list, as he no
longer maintains this module.  I assume he meant this list,
as I couldn't google another.

I also noticed that last discussions pertaining to this Perl
interfaces is years old. So, it may just be the case that it
might be a deprecated interface (hopefully I'm wrong).

Is there active maintenance of this module?


Two files that are touched are Pg.xs, which does the work, and
Pg.pm for the copy/paste documentation for PQescapeString()
function from PostgreSQL pdf doc.

I am not a XS expert, so I'd appreciate if you reviewed the patch
and if you find anything wrong you would let me know.

Hopefully you'll accept this change/patch :-)

Thanks,
--patrick

Attachments:

  [application/octet-stream] pgsql_perl5-1.9.0-patch-20060404 (1.3K, ../../53b425b00604041547s78b9bccdl6f95b9dfa4e5282b@mail.gmail.com/2-pgsql_perl5-1.9.0-patch-20060404)
  download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql_perl5-1.9.0 / Pg - patch for PQescapeString
@ 2006-04-04 23:25  Greg Sabino Mullane <greg@turnstep.com>
  parent: patrick keshishian <pkeshish@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Greg Sabino Mullane @ 2006-04-04 23:25 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: pkeshish@gmail.com


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I just wanted to send you the attached patch which adds the
> PQescapeString interface to the Pg module.

Unfortunately, you don't tell us exactly which module you mean.
There is the very actively maintained DBD::Pg module, and the
somewhat maintained DBD::PgPP module. There are also some
other older ones still floating around with a "Pg" in the name
- - the fact that you found Edmund Mergl's name suggests that
whatever you have, it is probably very old.

DBD::Pg can be found here:

http://search.cpan.org/~dbdpg/

It has its own quoting of variables through the $dbh->quote()
method. If you are trying to connect to Postgres via Perl,
this is probably your best bet. Hope that helps.

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200604042024
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFEMw6HvJuQZxSWSsgRAs5aAJ426m5Tr3nXGqzvVHiMP6nu92RdZQCgyJxa
MFX4H56aRzoKrOCuxGb+DWk=
=ad2S
-----END PGP SIGNATURE-----





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql_perl5-1.9.0 / Pg - patch for PQescapeString
@ 2006-04-05 03:36  patrick keshishian <pkeshish@gmail.com>
  parent: Greg Sabino Mullane <greg@turnstep.com>
  0 siblings, 0 replies; 3+ messages in thread

From: patrick keshishian @ 2006-04-05 03:36 UTC (permalink / raw)
  To: Greg Sabino Mullane <greg@turnstep.com>; +Cc: pgsql-interfaces

Hi Greg,


On 4/4/06, Greg Sabino Mullane <greg@turnstep.com> wrote:
> Unfortunately, you don't tell us exactly which module you mean.
> There is the very actively maintained DBD::Pg module, and the
> somewhat maintained DBD::PgPP module. There are also some
> other older ones still floating around with a "Pg" in the name
> - - the fact that you found Edmund Mergl's name suggests that
> whatever you have, it is probably very old.

My bad.  I should've included the link on CPAN (as you did):

    http://search.cpan.org/~mergl/pgsql_perl5-1.9.0/

And yes, it apparently is very old as it is dated '04 Apr 2000'.

The module just worked for my needs, so I started using it.
It only lacked access to PQescapeString or similar. Hence,
the patch.


> DBD::Pg can be found here:
>
> http://search.cpan.org/~dbdpg/
>
> It has its own quoting of variables through the $dbh->quote()
> method. If you are trying to connect to Postgres via Perl,
> this is probably your best bet. Hope that helps.

Might look at this module as my needs grow.

Thanks,
--patrick



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-04-05 03:36 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 22:47 pgsql_perl5-1.9.0 / Pg - patch for PQescapeString patrick keshishian <pkeshish@gmail.com>
2006-04-04 23:25 ` Greg Sabino Mullane <greg@turnstep.com>
2006-04-05 03:36   ` patrick keshishian <pkeshish@gmail.com>

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