Doc #75404 [Csd]: Wrong information about return type of ResultSet
| From: | ich_bin_sehr_gerne at web dot de | Date: | Fri, 20 Oct 2017 12:16:33 +0000 |
| Subject: | Doc #75404 [Csd]: Wrong information about return type of ResultSet | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15104@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75404&edit=1
ID: 75404
User updated by: ich_bin_sehr_gerne at web dot de
Reported by: ich_bin_sehr_gerne at web dot de
Summary: Wrong information about return type of ResultSet
Status: Closed
Type: Documentation Problem
Package: SQLite related
PHP Version: 7.1.10
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thank you very much for your quick reaction!
It is my pleasure to contribute to this great project.
Previous Comments:
------------------------------------------------------------------------
[2017-10-20 11:33:35] cmb@php.net
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.
------------------------------------------------------------------------
[2017-10-20 11:33:00] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=343266
Log: Fix bug #75404: Wrong information about return type of ResultSet
------------------------------------------------------------------------
[2017-10-19 11:42:28] cmb@php.net
Indeed, the documentation hints at a potential distinction between queries that
have a result (DQL statements) and resultless queries (DML statements, for
instance). However, this is not (and apparently has) never been implemented.
Actually, you either get an SQLite3Result object or FALSE.
------------------------------------------------------------------------
[2017-10-19 03:05:07] ich_bin_sehr_gerne at web dot de
Description:
------------
Hey there,
it appears to me that Sqlite3->query() always returns either "false" (if the query
was started with faulty sql statement) or otherwise an "Object", but never
"true", even if the query was run against an empty database table.
Did I get anything wrong? What is the appropriate way to check if there were any matches in the
results?
Regards, Christoph
---
From manual page: http://www.php.net/sqlite3.query
---
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75404&edit=1