Debugging and temporary fix for relations purging issue

This commit is contained in:
Dan Stillman 2013-11-13 12:08:44 -05:00
parent 2ca0d159b5
commit 6a0c623698

View File

@ -229,6 +229,7 @@ Zotero.Relations = new function () {
var uris = Zotero.DB.columnQuery(sql, [this.deletedItemPredicate, this.deletedItemPredicate]);
if (uris) {
var prefix = Zotero.URI.defaultPrefix;
try {
Zotero.DB.beginTransaction();
for each(var uri in uris) {
// Skip URIs that don't begin with the default prefix,
@ -245,6 +246,11 @@ Zotero.Relations = new function () {
}
Zotero.DB.commitTransaction();
}
catch (e) {
Zotero.debug(e);
Zotero.debug(Zotero.DB.query("SELECT * FROM relations"));
}
}
}