Skip to content

Commit

Permalink
debugging: Hiding former rewritten versions when querying records
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeder committed Nov 20, 2014
1 parent c224f59 commit b3a37d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlite-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, "''") + "'";
Expand Down

0 comments on commit b3a37d6

Please sign in to comment.