ZF2-187: Notice: Undefined property: PDOStatement::$error

Issue Type: Bug Created: 2012-03-03T10:26:13.000+0000 Last Updated: 2012-03-03T12:58:50.000+0000 Status: Resolved Fix version(s): Reporter: Robert Basic (robertbasic) Assignee: Robert Basic (robertbasic) Tags: - Zend\Db

Related issues: Attachments:


In Zend/Db/Adapter/Driver/Pdo/Statement.php on line 218 when throwing an InvalidQueryException it tries to access $this->resource->error for the exception message.

PDO and PDOStatement have "errorCode" [1] and "errorInfo" [2] methods for getting information about the errors.

I am/was testing with beta3 and Rob Allen's ZF2 tutorial.

Pull request is on it's way.

php -v PHP 5.3.10

[1]… [2]…


Posted by Robert Basic (robertbasic) on 2012-03-03T10:49:35.000+0000

Pull request sent:

Posted by Robert Basic (robertbasic) on 2012-03-03T12:58:50.000+0000

Pull request was merged by Rob Allen.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.