#50022 [Opn->Csd]: PDO::query returns false on failure

From: Date: Wed, 28 Oct 2009 13:01:33 +0000
Subject: #50022 [Opn->Csd]: PDO::query returns false on failure
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3019@lists.php.net to get a copy of this message
ID: 50022 Updated by: rquadling@php.net Reported By: liam at morland dot ca -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: 5.2.11 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-10-28 13:01:21] svn@php.net Automatic comment from SVN on behalf of rquadling Revision: http://svn.php.net/viewvc/?view=revision&revision=290027 Log: False is a valid return. Fix #50022 ------------------------------------------------------------------------ [2009-10-27 17:46:06] liam at morland dot ca Description: ------------ PDO::query returns false on failure. Documentation states that it always returns a PDOStatement object. Reproduce code: --------------- --- From manual page: pdo.query#Return Values --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50022&edit=1

« previous php.doc.bugs (#3019) next »