all repos — litestore @ 09430f5199ee6c46d711a3e866e7034734511500

A minimalist nosql document store.

Minor fix.
h3rald h3rald@h3rald.com
Sat, 15 Sep 2018 22:14:24 +0200
commit

09430f5199ee6c46d711a3e866e7034734511500

parent

354a9168b5c204f7f8fd7b91ddcc068a0c87cc17

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M lib/core.nimlib/core.nim

@@ -154,7 +154,7 @@ var query = SQL_COUNT_TAGS

if q.len > 0: query = q.sql if like.len > 0: - if (like[like.len-1] == '*'): + if (like[like.len-1] == '%' or like[like.len-1] == '*'): let str = like.substr(0, like.len-2) return store.db.getRow(query, str, str & "{")[0].parseInt else: