Closed (fixed)
Project:
Project
Component:
Projects
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Feb 2005 at 15:49 UTC
Updated:
30 Jun 2005 at 13:16 UTC
The node_access_*_sql() functions are no longer used. The attached patch updates all relevant queries to use db_rewrite_sql().
| Comment | File | Size | Author |
|---|---|---|---|
| db_rewrite.patch | 5.13 KB | tangent |
Comments
Comment #1
Kjartan commentedCommitted
Comment #2
(not verified) commentedComment #3
moshe weitzman commentedThat patch is not quite correct. When you run a query through db_rewrite_sql(), you do not need a DISTINCT(n.nid) in there. In fact, you shouldn't. db_erwrite_sql() adds that if needed (i.e. when a node_access module is active). if you leave a DISTINCT in there, you pay a performance penalty.
Comment #4
killes@www.drop.org commentedI've dealt with that.
Comment #5
(not verified) commented