commit ecfc779b2d5df63d9afd8b23713a2e03f8689950
parent a76eaef5bf29b678cdbee070bfbd5930d5868b10
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 14 Nov 2008 11:40:15 +0000
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)
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git 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) {