pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jason@openinformatics.com
To: Tavin Cole <tavin@agilecomputing.com>
Cc: dbi-dev@perl.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: DBD::Pg 1.22 fatal bug / patch
Date: 30 Oct 2003 14:42:37 +0530
Message-ID: <878yn39ji2.fsf@openinformatics.com> (raw)
In-Reply-To: <1067504544.1441.554.camel@localhost>
References: <1067504544.1441.554.camel@localhost>

Hi,

I've added your patch to GBorg.

Thanks,
jas.

Tavin Cole <tavin@agilecomputing.com> writes:

> i'm running a script that uses DBD::Pg 1.22 and fails with:
> 
> Undefined subroutine &DBD::Pg::db::pg_server_version called at
> /usr/lib/perl5/site_perl/5.8.0/i686-linux/DBD/Pg.pm line 911.
> 
> this is fixed with the attached patch.  thanks for the software!
> 
> cheers
> 
> -- 
> Tavin Cole <tavin@agilecomputing.com>
> http://www.agilecomputing.com/
> 
> --- Pg.pm.bak   2003-03-26 23:28:37.000000000 -0500
> +++ Pg.pm       2003-04-20 14:28:39.000000000 -0400
> @@ -908,7 +908,8 @@
>              # by pg_constraint. To maintain compatibility, check
>              # version number and execute appropriate query.
>   
> -            my $version = pg_server_version( $dbh );
> +            #my $version = pg_server_version( $dbh );
> +            my $version = DBD::Pg::pg_server_version( $dbh );
>               
>              my $con_query = $version < 7.3
>               ? "SELECT rcsrc FROM pg_relcheck WHERE rcname = '${table}_$col_name'"



view thread (2+ messages)  latest in thread

Message-ID: <878yn39ji2.fsf@openinformatics.com>
Permalink:  ../878yn39ji2.fsf@openinformatics.com/
Also on:    postgresql.org/message-id/878yn39ji2.fsf@openinformatics.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: jason@openinformatics.com, tavin@agilecomputing.com, dbi-dev@perl.org
  Subject: Re: DBD::Pg 1.22 fatal bug / patch
  In-Reply-To: <878yn39ji2.fsf@openinformatics.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