note 105804 rejected from pdo.query by danbrown
| From: | danbrown@php.net | Date: | Fri, 16 Sep 2011 14:22:22 +0000 |
| Subject: | note 105804 rejected from pdo.query by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183218@lists.php.net to get a copy of this message | ||
Note Submitter: hundalasiliah at gmail dot com
----
I have noticed that depending on the PDO version (or maybe PHP version?) a PDO::query command can
return false or a resultset, if the query reads a view instead of a table.
Example: I have a view named "inf_matriculados". If I use the command
PDO::query("SELECT expediente, completo FROM inf_matriculados ORDER BY completo"), I get:
* false on my paid domain webserver (PHP VERSION: 5.2.17, SQLite Library: 3.3.7)
* a result on my laptop (PHP 5.3, SQLite library 3.6)
Is this behaviour documented?