From: | Mike Beachy <beachy(at)marketboy(dot)com> |
---|---|
To: | Andrew Magnus <xanadian99(at)yahoo(dot)com> |
Cc: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: &main::execute undefined? |
Date: | 2002-11-21 19:20:34 |
Message-ID: | 20021121192034.GA1207@marketdude.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Nov 21, 2002 at 10:46:09AM -0800, Andrew Magnus wrote:
> 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 ;
You need to read the documentation for DBI. What Oliver's terse example
was saying is that you are using the wrong syntax. execute() is a
statement handle method, not a method for creating a statement handle.
Read the docs - perldoc DBI
mike
> Oliver Elphick <olly(at)lfix(dot)co(dot)uk> wrote:
> $statementH->execute() || warn $statementH->errstr ;
> $relname = $statementH->fetchrow_array();
> $statementH->finish();
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2002-11-21 19:22:46 | Re: [HACKERS] [GENERAL] Bug with sequence |
Previous Message | Tom Lane | 2002-11-21 19:17:00 | Re: Welcom & a problem |