Pg (Perl for Postgresql) - Mailing list pgsql-interfaces

From Laurette Cisneros
Subject Pg (Perl for Postgresql)
Date
Msg-id Pine.LNX.4.44.0212191458030.16486-100000@visor.corp.nextbus.com
Whole thread Raw
Responses Re: Pg (Perl for Postgresql)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
Does this belong on this list?

Using Pg, it seems I get an error when trying to query a 7.3 database:

$fromconn = Pg::connectdb( "host=testhost port=5439 dbname=test-73"
);   die $fromconn->errorMessage unless ($fromconn->status eq PGRES_CONNECTION_OK);
$query = "select x, y from table1;";
$result = $fromconn->exec( $query );
$status = $result->resultStatus;
if ( $status ne PGRES_TUPLES_OK ) {  print "query failed: ";  print $status;  print "\n$query\n";  print "\n";
}

returns:
query failed: 7
select x, y from table1;

Is there a newer version of Pg that should be used that can read both 7.2
and 7.3 databases?

Thanks,

-- 
Laurette Cisneros
The Database Group
(510) 420-3137
NextBus Information Systems, Inc.
www.nextbus.com
----------------------------------
Life is an SQL old chum...



pgsql-interfaces by date:

Previous
From: Martin Zeiser
Date:
Subject: postgres <=> labview?
Next
From: Tom Lane
Date:
Subject: Re: Pg (Perl for Postgresql)