&main::execute undefined? - Mailing list pgsql-general

From Andrew Magnus
Subject &main::execute undefined?
Date
Msg-id 20021121184610.99849.qmail@web21506.mail.yahoo.com
Whole thread Raw
In response to Re: &main::execute undefined?  (Oliver Elphick <olly@lfix.co.uk>)
Responses Re: &main::execute undefined?  (Mike Beachy <beachy@marketboy.com>)
Re: &main::execute undefined?  (dev@archonet.com)
Re: &main::execute undefined?  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-general

Thanks, but it still doesn't work. :-(

 

For everyone else, the error I'm getting is:

 

Undefined subroutine &main::execute called at ./test.pl line 10.

 

where line 10 is:

 

$statementH = execute() || warn $statementH->errstr ;

 

 Oliver Elphick <olly@lfix.co.uk> wrote:

On Thu, 2002-11-21 at 05:37, Andrew Magnus wrote:
>
> Ok, I'm running Postgres and RH8 right out-of-the-box. DBD::Pg is
installed, and I'm using Perl 5.8 -- all right out-of-the-box. When my
...
> Undefined subroutine &main::execute called at ./test.pl line 10.
...
> ========
>
> #! /usr/bin/perl -w
>
> use DBI ;
>
>
> $dbH = (DBI->connect("DBI:Pg:dbname=lanparty-reservations","andrew","shrp1234")) ;
> $sql = "select c.relname as table from pg_class c where c.relkind = 'r' and c.relname !~ '^pga_' and c.relname !~ '^pg_'" ;
>
> $statementH = $dbH->prepare($sql) ;
> $statementH = execute() || warn $statementH->errstr ;

$statementH->execute() || warn $statementH->errstr ;
$relname = $statementH->fetchrow_array();
$statementH->finish();

--
O liver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"A new commandment I give unto you; That ye love one
another. As I have loved you, so ye also must love one
another. By this shall all men know that ye are my
disciples, if ye have love one to another."
John 13:34,35



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

pgsql-general by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: Re: tcpip connections..
Next
From: Tom Lane
Date:
Subject: Re: Welcom & a problem