correctly handle error results of PDO and MDB2 backends