From 05d1fba3683206f942f0b461dd7f5ee5bcd92785 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 23 May 2006 13:08:19 +0000 Subject: [PATCH] Fixed SQL error in creator update query in Item.save() --- chrome/chromeFiles/content/scholar/data_access.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/data_access.js b/chrome/chromeFiles/content/scholar/data_access.js index 1ecbe84fab..cd17554f56 100644 --- a/chrome/chromeFiles/content/scholar/data_access.js +++ b/chrome/chromeFiles/content/scholar/data_access.js @@ -480,9 +480,9 @@ Scholar.Item.prototype.save = function(){ + ' AND orderIndex=' + orderIndex; if (Scholar.DB.valueQuery(sql2)){ - sql += 'UPDATE itemCreators SET creatorID=' - + creatorID + ', creatorTypeID=' - + creator['creatorTypeID'] + ', ' + sql += 'UPDATE itemCreators SET ' + + 'creatorID=' + creatorID +', ' + + 'creatorTypeID=' + creator['creatorTypeID'] + ' ' + 'WHERE itemID=' + this.getID() + ' AND orderIndex=' + orderIndex + ";\n"; }