Skip to content

Commit

Permalink
Fix missing FROM in deleted docs query [cblite]
Browse files Browse the repository at this point in the history
  • Loading branch information
borrrden committed Oct 15, 2021
1 parent 28e7cfa commit 236946a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cblite/InfoCommand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class InfoCommand : public CBLiteCommand {


uint64_t countDocsWhere(const char *what) {
string n1ql = "SELECT count(*) WHERE "s + what;
string n1ql = "SELECT count(*) FROM _ WHERE "s + what;
C4Error error;
c4::ref<C4Query> q = c4query_new2(_db, kC4N1QLQuery, slice(n1ql), nullptr, &error);
if (!q)
Expand Down

0 comments on commit 236946a

Please sign in to comment.