From e13c04e3ee65141263c7c184369b818e10ce3c45 Mon Sep 17 00:00:00 2001 From: Gin Liu Date: Fri, 30 Sep 2016 09:57:42 +0800 Subject: [PATCH] replace where(true) to unconditionally() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bb6e3653..63ffc82f3 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ if (const auto& row = db(select(foo.name.as(cheese)).from(foo).where(foo.id == 1 } // selecting a single row with a single result: -return db(select(count(foo.id)).from(foo).where(true)).front().count; +return db(select(count(foo.id)).from(foo).unconditionally()).front().count; Of course there are joins and subqueries, more functions, order_by, group_by etc. These will be documented soon.