From ecfc779b2d5df63d9afd8b23713a2e03f8689950 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 14 Nov 2008 11:40:15 +0000 Subject: [PATCH] Fix breakage in post-3.0.4 Firefox builds due to SQLite 3.6.4 upgrade (due to 'indexed' keyword from new INDEXED BY syntax) --- chrome/content/zotero/xpcom/fulltext.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 9b326d8039..e8eb5f4f41 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -634,7 +634,7 @@ Zotero.Fulltext = new function(){ function getPages(itemID, force) { - var sql = "SELECT indexedPages AS indexed, totalPages AS total " + var sql = "SELECT indexedPages, totalPages AS total " + "FROM fulltextItems WHERE itemID=?"; return Zotero.DB.rowQuery(sql, itemID); } @@ -663,7 +663,7 @@ Zotero.Fulltext = new function(){ function getChars(itemID) { - var sql = "SELECT indexedChars AS indexed, totalChars AS total " + var sql = "SELECT indexedChars, totalChars AS total " + "FROM fulltextItems WHERE itemID=?"; return Zotero.DB.rowQuery(sql, itemID); } @@ -726,7 +726,7 @@ Zotero.Fulltext = new function(){ case 'application/pdf': var pages = this.getPages(itemID); if (pages) { - var indexedPages = pages.indexed; + var indexedPages = pages.indexedPages; var totalPages = pages.total; if (!totalPages && !indexedPages) { @@ -751,7 +751,7 @@ Zotero.Fulltext = new function(){ default: var chars = this.getChars(itemID); if (chars) { - var indexedChars = chars.indexed; + var indexedChars = chars.indexedChars; var totalChars = chars.total; if (!totalChars && !indexedChars) {