in reply to DBI::mysql fetch() without execute() PROBLEM
You get that error because there is a problem with your execute statement. It doesn't complete and then fetch without a proper execute causes your program to die. Changing
my $rc = $sth->execute('OH');To:
$sth->execute('OH') or die $sth->errstr;Should give you the error. I would venture to guess its in your original statement. BTW I don't believe capturing the output from the execute statement is particularly useful. I've never seen that used
Hope that helps
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI::mysql fetch() without execute() PROBLEM
by peppiv (Curate) on Jan 22, 2002 at 01:18 UTC | |
by cfreak (Chaplain) on Jan 22, 2002 at 01:29 UTC | |
by peppiv (Curate) on Jan 22, 2002 at 20:47 UTC | |
by cfreak (Chaplain) on Jan 23, 2002 at 00:32 UTC | |
by peppiv (Curate) on Jan 23, 2002 at 21:37 UTC | |
|