aboutsummaryrefslogtreecommitdiff
path: root/common/query
diff options
context:
space:
mode:
Diffstat (limited to 'common/query')
-rw-r--r--common/query/basics/driver.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/query/basics/driver.cxx b/common/query/basics/driver.cxx
index a982901..a9a394d 100644
--- a/common/query/basics/driver.cxx
+++ b/common/query/basics/driver.cxx
@@ -408,6 +408,12 @@ main (int argc, char* argv[])
r = db->query<person> (query::first_name.in_range (names, names_end));
print (r);
+ // Empty range.
+ //
+ r = db->query<person> (query::last_name == "Doe" &&
+ query::first_name.in_range (names, names));
+ assert (r.empty ());
+
t.commit ();
}