Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2008 at 22:26 UTC
Updated:
25 Dec 2008 at 17:21 UTC
db_result documentation states that the return value for no record found is "FALSE"
It is actually "NULL"
Comments
Comment #1
add1sun commentedMoving to correct queue.
Comment #2
heine commentedWith the mysqli db driver:
Results in
bool(false), gettype() confirms bool.Comment #3
heine commentedBased on a comment of Jmorahan I tried it with the mysql driver as well, still a bool on 6.x-dev
Comment #4
heine commentedThe same issue was fixed in #98988: db_result should return FALSE if no result was found., long before 6.x.
Comment #5
dave reiddatabase.pgsql.inc:
database.mysql.inc:
database.mysqli.inc:
All three return FALSE when a result is not found. If you can provide an example, we can test it, but right now it looks correct.
Comment #6
epimeth commentedSeems like it was fixed on some earlier update. Thanks all!