Closed (fixed)
Project:
Word count
Version:
7.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Mar 2012 at 22:03 UTC
Updated:
27 Jul 2013 at 18:33 UTC
Jump to comment: Most recent file
There are a couple of things wrong:
A) The query does a join on vid and nid, which means it doesn't capture all changes.
B) It counts across all revisions, not just the published version.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | WordCount-Issue-1503364-1503364-1.patch | 1.03 KB | jthinaka |
Comments
Comment #1
jthinaka commentedPlease see attached patch for the issue above.
Comment #2
crookednumber commentedComment #3
crookednumber commentedIt doesn't need to touch any revision table, or look at any vids, since we're just grabbing most recent value.
Something like:
SELECT n.title, fdb.body_value AS body, n.uid, u.name FROM node AS n, users AS u, field_data_body AS fdb WHERE n.nid=fdb.entity_id and fdb.entity_type='node' and u.uid=n.uid;Comment #4
crookednumber commented[7.x-1.x dad402b] Issue #1503364 by CrookedNumber: Node query is unnecessarily complex -- and likely flawed
1 files changed, 1 insertions(+), 1 deletions(-)
Comment #5
crookednumber commentedAmending commit message to give full credits:
[7.x-1.x c7296b2] Issue #1503364 by jthinaka, CrookedNumber: Node query is unnecessarily complex -- and likely flawed
1 files changed, 1 insertions(+), 1 deletions(-)