Closed (fixed)
Project:
Advertisement
Version:
6.x-1.x-dev
Component:
click_filter module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2008 at 21:24 UTC
Updated:
3 Dec 2008 at 18:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
mehmeta commentedHi, I went through the Coder module and changed db_num_rows() s to db_fetch_object()s, and != to <> in an sql query, pretty simple. Reinstalled the module, seems to go through the existing clicks and update them as intended. This is a patch for the install file, module file itself seems to work just fine. This is my first patch, so please do not hesitate to point out if there's anything I'm doing wrong. Thanks.
Comment #2
jeremy commentedThanks for the patch! Committed.
Comment #3
jrglasgow commentedin #1 he was referring to http://drupal.org/node/114774#db-num-rows , There were a couple of instances of db_num_rows() in the click_filter.mode as well, this patch will take care of that,
Comment #4
jeremy commentedRe-opening issue to review second patch.
Comment #5
jeremy commented"SELECT COUNT(*)" is a performance hit on InnoDB and PostgreSQL. The patch should only replace the call to db_num_rows().
Comment #6
jrglasgow commentedI was unaware of the performance hit when using "COUNT(*)", here is the revised patch
Comment #7
jeremy commentedThanks, patch committed.