develooper Front page | perl.dbi.users | Postings from August 2006

finishing sth using Childhandles

Thread Next
From:
Henri Asseily
Date:
August 24, 2006 00:48
Subject:
finishing sth using Childhandles
Is the below the correct usage for finishing still active child  
handles of a dbh?


foreach my $childh (@{$dbh->{ChildHandles}}) {
     $childh->finish() if ($childh->{Type} eq 'st');
}


I'm getting an error when running the above code:

dbih_setup_fbav: invalid number of fields: -1, NUM_OF_FIELDS  
attribute  probably not set right

Thanks

H

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About