You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2020/01/02 12:01:35 UTC
[couchdb-documentation] branch master updated: Add a warning for
$lt and $gt with strings (#448)
This is an automated email from the ASF dual-hosted git repository.
garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new 53bcbd4 Add a warning for $lt and $gt with strings (#448)
53bcbd4 is described below
commit 53bcbd4f2cfae88715c7cb11f89db112cf9976ac
Author: Bruno Michel <bm...@menfin.info>
AuthorDate: Thu Jan 2 13:01:28 2020 +0100
Add a warning for $lt and $gt with strings (#448)
Comparison of strings with mango selectors `$gt` and `$lt` and be surprising. Let's add a warning about that.
---
src/api/database/find.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/api/database/find.rst b/src/api/database/find.rst
index d7af1df..79485f0 100644
--- a/src/api/database/find.rst
+++ b/src/api/database/find.rst
@@ -756,7 +756,9 @@ the database performs a full scan of the primary index:
in production.
Most selector expressions work exactly as you would expect for the given
-operator.
+operator. But it is not always the case: for example, comparison of strings is
+done with ICU and can can give surprising results if you were expecting ASCII
+ordering. See :ref:`views/collation` for more details.
.. _find/sort: