Subject: | array has 1 fields, should have 4 at /usr/lib/perl5/site_perl/5.8.3/DBD/PgPP.pm line 409 |
distro file DBD-PgPP-0.05.tar.gz
This is perl, v5.8.3 built for i586-linux-thread-multi
Linux suse2 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004 i686 i686 i386 GNU/Linux
the following snipet works for 1 tupple then breaks with error message below
my $sql="select nid,name,community,ip from asset_nodes,asset_host_nodes,asset_snmp_auth where (nnid=nid) and (snmpid=snmp_id)";
my $sth=$dbd->prepare($sql);
$sth->execute();
while (my $row=$sth->fetchrow_hashref){ <--- breaks on this line on 2nd pass
Error message:
array has 1 fields, should have 4 at /usr/lib/perl5/site_perl/5.8.3/DBD/PgPP.pm line 409