#27377 [Fbk->Bgs]: sqlite_query returns false on remark

From: Date: Sat, 06 Mar 2004 20:28:51 +0000
Subject: #27377 [Fbk->Bgs]: sqlite_query returns false on remark
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359399@lists.php.net to get a copy of this message
ID: 27377 Updated by: nlopess@php.net Reported By: momo@php.net -Status: Feedback +Status: Bogus Bug Type: Documentation problem Operating System: windows 2000 PHP Version: 4.3.5RC3 New Comment: Wez's response: "Depends on the behaviour of libsqlite AFAIR. Why would you care about a query containing only a comment anyway?" Previous Comments: ------------------------------------------------------------------------ [2004-02-24 12:59:48] nlopess@php.net Hi momo! This is not the place to ask questions :) Please contact one of the maintainers of the extension (Wez Furlong, Tal Peer, Marcus Börger or Ilia Alshanetsky) and then tell us the answer :) ------------------------------------------------------------------------ [2004-02-24 08:05:17] momo@php.net Description: ------------ on the sqlite_query() documentation mention that: " ...For other kinds of queries, this function will return a boolean result; TRUE for success or FALSE for failure." but the above Reproduce code show that on comments the sqlite return false. so we have here sqlite or php or phpdoc bug. Reproduce code: --------------- <? $db = sqlite_open("temp.db"); if(!sqlite_query($db,"-- just a remark")){ echo "is this intended behavior?"; } else { echo "ok"; } sqlite_close($db); ?> Expected result: ---------------- is this intended behavior? Actual result: -------------- ok ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27377&edit=1

« previous php.doc (#969359399) next »