As mentioned in that issue, the underlying cause is #52. I am not sure that this is the right fix, but the issue seems to be the fact that the imp_dbh is left with an invalid do_tmp_sth after an earlier do call, which pg_st_FETCH_attrib tries to use. The design of do_tmp_sth seems prone to this sort of issue.
This fixes #57
As mentioned in that issue, the underlying cause is #52. I am not sure that this is the right fix, but the issue seems to be the fact that the
imp_dbh
is left with an invaliddo_tmp_sth
after an earlierdo
call, whichpg_st_FETCH_attrib
tries to use. The design ofdo_tmp_sth
seems prone to this sort of issue.