From 4fb833329916d2667714586d96162c99d0fd2615 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 4 Feb 2013 10:01:00 -0600 Subject: [PATCH] added comments to explain caveats with last commit --- VERSION | 2 +- gluon/dal.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index dc95465d..3e8d8717 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.02.04.09.54.44 +Version 2.4.1-alpha.2+timestamp.2013.02.04.10.00.20 diff --git a/gluon/dal.py b/gluon/dal.py index fd987234..c714556d 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -8775,6 +8775,11 @@ class Expression(object): return Query(db, db._adapter.ENDSWITH, self, value) def contains(self, value, all=False, case_sensitive=False): + """ + The case_sensitive parameters is only useful for PostgreSQL + For other RDMBs it is ignored and contains is always case in-sensitive + For MongoDB and GAE contains is always case sensitive + """ db = self.db if isinstance(value,(list, tuple)): subqueries = [self.contains(str(v).strip(),case_sensitive=case_sensitive)