$query->execute and $sql_stage++; $query2->execute and $sql_stage++; [download]
In reply to Re^2: Catching DBI (or other) errors by duckyd in thread Catching DBI (or other) errors by nmerriweather