Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This applies to both 4.7 and CVS. Duplicate queries are not being detected and we thus lose a major opportunity to detect bad programming practices and wasted resources.
Comment | File | Size | Author |
---|---|---|---|
#1 | devel_query_count.patch | 810 bytes | bdragon |
Comments
Comment #1
bdragon CreditAttribution: bdragon commentedFound it!
$count needs to get pulled out before $query[0] is manipulated, as the $counts array is indexed by $query[0].
(Patch is against DRUPAL-4-7, fix for CVS is probabaly similar)
Comment #2
robertDouglass CreditAttribution: robertDouglass commentedcommitted to DRUPAL-5 and DRUPAL4-7. Thanks.
Comment #3
(not verified) CreditAttribution: commented