And of course the test pragma is not supported everywhere

Similar issue but no solution: http://osdir.com/ml/sqlite-users/2010-01/msg00220.html
Experimentally determined cutoff at 3.7.9
Silence pesky Devel::Cycle warning in leak test on 5.12+
Trust the DBIC txn_depth indicator when determining SQLite state

This allows legacy things like dbh() to work properly on newer libs