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 |
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