bucardo / dbdpg

Perl Postgres driver DBD::Pg aka dbdpg
48 stars 36 forks source link

Fix segfault during st destroy #66

Closed oschwald closed 4 years ago

oschwald commented 4 years ago

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 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.