note 115077 added to class.sqlite3result

From: Date: Fri, 23 May 2014 05:30:23 +0000
Subject: note 115077 added to class.sqlite3result
Groups: php.notes 
Request: Send a blank email to php-notes+get-199596@lists.php.net to get a copy of this message
According to http://www.php.net/manual/en/sqlite3result.columntype.php, and also per my experience, columnType() doesn't return anything other than SQLITE3_NULL. Consequently, the test suggested in the comment that tries to identify whether a column is NULL is incorrect. The right thing to do appears to be to test if ($result->fetchArray())[0] == null. ---- Server IP: 72.52.91.14 Probable Submitter: 50.152.233.216 ---- Manual Page -- http://php.net/manual/en/class.sqlite3result.php Edit -- https://master.php.net/note/edit/115077 Del: integrated -- https://master.php.net/note/delete/115077/integrated Del: useless -- https://master.php.net/note/delete/115077/useless Del: bad code -- https://master.php.net/note/delete/115077/bad+code Del: spam -- https://master.php.net/note/delete/115077/spam Del: non-english -- https://master.php.net/note/delete/115077/non-english Del: in docs -- https://master.php.net/note/delete/115077/in+docs Del: other reasons-- https://master.php.net/note/delete/115077 Reject -- https://master.php.net/note/reject/115077 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199596) next »