Skip to content

Commit

Permalink
Recurse into this directory or children
Browse files Browse the repository at this point in the history
  • Loading branch information
subsetpark committed Jul 26, 2017
1 parent 35f337d commit e91aa4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ushapkg/db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ proc dbSearch*(
where = "WHERE"
whereAnd = "AND"
cwdEquals = "cwd = ?"
cwdLike = "cwd LIKE ?"
cwdLike = "( cwd = ? OR cwd LIKE ? )"
whereLike = "cmd LIKE ?"
orderByStr = "ORDER BY $1 DESC"
limitStmt = "LIMIT ?"
Expand Down Expand Up @@ -110,6 +110,7 @@ proc dbSearch*(
handleWhere()
if recurse:
q.add cwdLike
args.add cwd
args.add "$1/%" % cwd
else:
q.add cwdEquals
Expand Down

0 comments on commit e91aa4d

Please sign in to comment.