errorCode() public method

Fetches the SQLSTATE associated with the last operation on the statement.
public errorCode ( ) : string
return string
 /**
  * @return mixed
  */
 function errorCode()
 {
     return $this->stmt->errorCode();
 }