From 07c450acbf216bee15f141309c19d0bb435c45fb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 13 Dec 2010 22:10:06 +0000 Subject: [PATCH] Remove unnecessary joins --- chrome/content/zotero/xpcom/data/items.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 9854facff1..cb85df634e 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -522,8 +522,7 @@ Zotero.Items = new function() { // Then try editors "CASE (" + - "SELECT COUNT(*) FROM itemCreators " + - "NATURAL JOIN creatorTypes WHERE itemID=I.itemID AND creatorTypeID IN (3)" + + "SELECT COUNT(*) FROM itemCreators WHERE itemID=I.itemID AND creatorTypeID IN (3)" + ") " + "WHEN 0 THEN NULL " + "WHEN 1 THEN (" + @@ -549,8 +548,7 @@ Zotero.Items = new function() { // Then try contributors "CASE (" + - "SELECT COUNT(*) FROM itemCreators " + - "NATURAL JOIN creatorTypes WHERE itemID=I.itemID AND creatorTypeID IN (2)" + + "SELECT COUNT(*) FROM itemCreators WHERE itemID=I.itemID AND creatorTypeID IN (2)" + ") " + "WHEN 0 THEN NULL " + "WHEN 1 THEN (" +