PDO::errorInfo

Fetch extended error information associated with the last operation on the database handle