commit 05d1fba3683206f942f0b461dd7f5ee5bcd92785 parent 6c6211566937fce4f0d8c6b933851f004d6faaff Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 23 May 2006 13:08:19 +0000 Fixed SQL error in creator update query in Item.save() Diffstat:
| M | 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 @@ -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"; }