perl5-dbi / DBD-MariaDB

Perl MariaDB driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DBD-MariaDB does not check "Active" on database handles when preparing / executing

jwrightecs opened this issue · comments

Similar to perl5-dbi/DBD-mysql#388 DBD-MariaDB needs to check whether a database handle is active (has not been disconnected) before attempting to prepare or execute queries against that handle

Can you provide more details? The test you provided in perl5-dbi/DBD-mysql#352 (comment) correctly dies with

DBD::MariaDB::db prepare failed: MySQL server has gone away at ./1.pl line 10.
Can't call method "execute" on an undefined value at ./1.pl line 11.

Closing this issue, there was external code setting auto_reconnect on for mariadb handle