Skip site navigation (1) Skip section navigation (2)

Re: DBD::Pg 1.22 fatal bug / patch

From: jason(at)openinformatics(dot)com (Jason E(dot) Stewart)
To: Tavin Cole <tavin(at)agilecomputing(dot)com>
Cc: dbi-dev(at)perl(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: DBD::Pg 1.22 fatal bug / patch
Date: 2003-10-30 09:12:37
Message-ID: 878yn39ji2.fsf@openinformatics.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi,

I've added your patch to GBorg.

Thanks,
jas.

Tavin Cole <tavin(at)agilecomputing(dot)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(at)agilecomputing(dot)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'"

Responses

pgsql-interfaces by date

Next:From: creidDate: 2003-10-30 14:44:31
Subject: PGEASY
Previous:From: Tom LaneDate: 2003-10-29 18:33:09
Subject: Re: pgtcl large object read/write corrupts binary data

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group