in reply to Re^2: Perl DBI connect cached still active
in thread Perl DBI connect cached still active

Maybe $parent_data[0] is not what you think it is...

Try adding RaiseError=>1 like my example showed. Perhaps there is some other error you are not testing for.

Also try using prepare instead of prepare_cached