Issue #2296459 by fchandler: Fixed PDO exception.