DBD-MariaDB does not check "Active" on database handles when preparing / executing
jwrightecs opened this issue · comments
jwrightecs commented
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
E. Choroba commented
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.
jwrightecs commented
Closing this issue, there was external code setting auto_reconnect on for mariadb handle