From b3a37d6735c100ae80398ffe63684c0cddda8333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20R=C3=B6der?= Date: Thu, 20 Nov 2014 13:15:43 -0800 Subject: [PATCH] debugging: Hiding former rewritten versions when querying records --- sqlite-storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sqlite-storage.js b/sqlite-storage.js index 1729d46..0069a14 100644 --- a/sqlite-storage.js +++ b/sqlite-storage.js @@ -248,6 +248,7 @@ util._extend(SQLiteStore.prototype, d.bindMethods({ return "objs.path = '" + path.replace(/\'/g, "''") + "'"; }).join(' OR ') : "objs.path IS NOT NULL") + ')'; + where += ' AND objs.change IS NOT "rewrite"'; if (spec.pathPatterns) { where += " AND ( " + spec.pathPatterns.map(function(pattern) { return "objs.path LIKE '" + pattern.replace(/\'/g, "''") + "'";