Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
20 Aug 2009 at 20:21 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidAttached patch changes the query to a SELECT 1 .... LIMIT 0, 1 to help speed it up (see http://drupal.org/node/224333#select_count) and casts the result to a boolean. Also revises the documentation to say that it will return FALSE otherwise.
Comment #2
dave reidBackport patch for Drupal 6
Comment #4
dave reidSetting back to CNR due to http://testing.drupal.org/node/50.
Comment #5
moshe weitzman commentedNice fix. The ability to return values higher than 1 is a relic from some dark old days. This is better.
Comment #6
webchickCommitted to HEAD. Thanks!
Marking down to 6.x for consideration. It's an API change, but the current behaviour seems wrong.
Comment #7
gábor hojtsyOk, this fixes the return value to be as documented, so committed to Drupal 6 too.