开发者

Suggestions for troubleshooting this Perl DBD::mysql error message?

开发者 https://www.devze.com 2023-02-13 18:56 出处:网络
\"Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db\" Unable to find any docume开发者_运维问答ntation related to the error, any suggestions?Your db connection, usually

"Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db"

Unable to find any docume开发者_运维问答ntation related to the error, any suggestions?


Your db connection, usually the $dbh in plain DBI code, needs to be disconnected before it goes out of scope. See DBI#disconnect and try putting "dbi disconnect" into google/etc to see related issues discussions.


It's important to do commit/rollback (i.e $dbh->commit;)after the insert/update/delete sentences in your SQL code, because you pass {Autocommit=>0} parameter in the database connection code. And, of course, you must do $dbh->disconnect before you finish your program

0

精彩评论

暂无评论...
验证码 换一张
取 消