note 113142 added to class.sqlite3stmt
| From: | bohwaz | Date: | Thu, 05 Sep 2013 03:42:46 +0000 |
| Subject: | note 113142 added to class.sqlite3stmt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196167@lists.php.net to get a copy of this message | ||
There is an undocumented method "readOnly" in this class, as reported on https://bugs.php.net/bug.php?id=65216
This method can be used like this :
<?php
$db = new SQLite3(':memory:');
$db->exec('CREATE TABLE test (column);');
$stmt = $db->prepare('SELECT column FROM test;');
var_dump($stmt->readOnly()); // -> true
$stmt = $db->prepare('INSERT INTO test (42);');
var_dump($stmt->readOnly()); // -> false
?>
----
Server IP: 113.20.13.217
Probable Submitter: 220.237.28.194
----
Manual Page -- http://php.net/manual/en/class.sqlite3stmt.php
Edit -- https://master.php.net/note/edit/113142
Del: integrated -- https://master.php.net/note/delete/113142/integrated
Del: useless -- https://master.php.net/note/delete/113142/useless
Del: bad code -- https://master.php.net/note/delete/113142/bad+code
Del: spam -- https://master.php.net/note/delete/113142/spam
Del: non-english -- https://master.php.net/note/delete/113142/non-english
Del: in docs -- https://master.php.net/note/delete/113142/in+docs
Del: other reasons-- https://master.php.net/note/delete/113142
Reject -- https://master.php.net/note/reject/113142
Search -- https://master.php.net/manage/user-notes.php