Parentheses were placed wrong, causing bad calls to db_rewrite_sql().
For the second case, I could be wrong on this, but it's not documented that you can call db_rewrite_sql on the node_revisions table. I joined the node table just to be safe.

CommentFileSizeAuthor
views.rewrite.patch1.28 KBmfb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! THanks for the patch!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.