in reply to Re^2: Replacement for/working version of CGI::App::Plugin::BREAD ???
in thread Replacement for/working version of CGI::App::Plugin::BREAD ???
Thanks for the tip. I found an obscure reference to fetchrow_arrayref where the person was getting the same error I was, but couldn't figure out why. The reply was something to the effect that fetchrow_arrayref has "issues," and to not use it.
So I changed it to fetchrow_hashref (which is the version I normally used, anyway). I did the copy/paste routine with the code I was using until I figured out what it was really doing.
Anyway, what I discovered is that:
my $sth2 = $dbh->prepare("SHOW FULL COLUMNS IN ?") or die 'pre +pare failed'; $sth2->execute($table) or die 'execute failed [' . $sth2->err +. '] [' . $sth2->errstr . ']';
dies with a syntax error. And that:
my $sth2 = $dbh->prepare("SHOW FULL COLUMNS IN $table") or die + 'prepare failed'; $sth2->execute() or die 'execute failed [' . $sth2->err . '] [ +' . $sth2->errstr . ']';
does not die, but also does not return any rows of data.
Lee Crites
lee@critesclan.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Replacement for/working version of CGI::App::Plugin::BREAD ???
by Corion (Patriarch) on Jun 18, 2013 at 18:11 UTC | |
|
Re^4: Replacement for/working version of CGI::App::Plugin::BREAD ???
by poj (Abbot) on Jun 18, 2013 at 17:39 UTC | |
by lee_crites (Scribe) on Jun 18, 2013 at 18:33 UTC |