|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-16 23:46 UTC] sniper@php.net
[2005-11-17 15:40 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ When setting the result of sqlite_query to a result set, if there is an error, error_msg is not set. Example: $result = $db->query("asdfesdfa", SQLITE_NUM, $db_error); i would like to note, however, that if i dont set the results into a result set, it works just fine. Example: $db->query("asdfesdfa", SQLITE_NUM, $db_error); Reproduce code: --------------- $db = new SQLiteDatabase("sqlite_db1"); $result = $db->query("asdfesdfa", SQLITE_NUM, $db_error); print">> $db_error<br>\n"; $db->query("asdfesdfa", SQLITE_NUM, $db_error); print">> $db_error<br>\n"; Expected result: ---------------- >> near "asdfesdfa": syntax error >> near "asdfesdfa": syntax error Actual result: -------------- >> >> near "asdfesdfa": syntax error