Fix "columns itemID, tagID are not unique" sync error

I'm not sure what's causing this, but it will quite likely go away in
4.1 regardless.
This commit is contained in:
Dan Stillman 2013-11-11 23:00:32 -05:00
parent 55d7ac1351
commit 86afad9b35

View File

@ -459,7 +459,7 @@ Zotero.Tag.prototype.save = function (full) {
}
if (newids.length) {
var sql = "INSERT INTO itemTags (itemID, tagID) VALUES (?,?)";
var sql = "INSERT OR IGNORE INTO itemTags (itemID, tagID) VALUES (?,?)";
var insertStatement = Zotero.DB.getStatement(sql);
var pairs = [];