all repos — litestore @ e60fa2b8a92c099608691eaf399e70bd90d7597b

A minimalist nosql document store.

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

e60fa2b8a92c099608691eaf399e70bd90d7597b

parent

e72fc2b9f5df7119849daef3c04f605b888d63f3

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: