diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-09-15 20:54:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-09-15 20:54:25 +0000 |
commit | 89ba1e2e576f522bbf6f27fde77876dd0d5f2013 (patch) | |
tree | c2782470264d2ee42aa1402210d7994fbb9b8151 /lib/sqlalchemy/dialects/postgresql | |
parent | 61ac591ab9f305e97d3536826b5a8ddf412a0fe9 (diff) | |
parent | 798fb1910fac737d81b7cf1a4f3c256af8456e58 (diff) | |
download | sqlalchemy-89ba1e2e576f522bbf6f27fde77876dd0d5f2013.tar.gz |
Merge "Fixes: #6930"
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/array.py | 3 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/hstore.py | 3 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/json.py | 3 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ranges.py | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/array.py b/lib/sqlalchemy/dialects/postgresql/array.py index 1b036ac32..3cb60d3f3 100644 --- a/lib/sqlalchemy/dialects/postgresql/array.py +++ b/lib/sqlalchemy/dialects/postgresql/array.py @@ -221,6 +221,9 @@ class ARRAY(sqltypes.ARRAY): def contains(self, other, **kwargs): """Boolean expression. Test if elements are a superset of the elements of the argument array expression. + + kwargs may be ignored by this operator but are required for API + conformance. """ return self.operate(CONTAINS, other, result_type=sqltypes.Boolean) diff --git a/lib/sqlalchemy/dialects/postgresql/hstore.py b/lib/sqlalchemy/dialects/postgresql/hstore.py index 30e2d4bc2..a4090f1ac 100644 --- a/lib/sqlalchemy/dialects/postgresql/hstore.py +++ b/lib/sqlalchemy/dialects/postgresql/hstore.py @@ -170,6 +170,9 @@ class HSTORE(sqltypes.Indexable, sqltypes.Concatenable, sqltypes.TypeEngine): def contains(self, other, **kwargs): """Boolean expression. Test if keys (or array) are a superset of/contained the keys of the argument jsonb expression. + + kwargs may be ignored by this operator but are required for API + conformance. """ return self.operate(CONTAINS, other, result_type=sqltypes.Boolean) diff --git a/lib/sqlalchemy/dialects/postgresql/json.py b/lib/sqlalchemy/dialects/postgresql/json.py index 2277d3cbe..2acf177f5 100644 --- a/lib/sqlalchemy/dialects/postgresql/json.py +++ b/lib/sqlalchemy/dialects/postgresql/json.py @@ -310,6 +310,9 @@ class JSONB(JSON): def contains(self, other, **kwargs): """Boolean expression. Test if keys (or array) are a superset of/contained the keys of the argument jsonb expression. + + kwargs may be ignored by this operator but are required for API + conformance. """ return self.operate(CONTAINS, other, result_type=sqltypes.Boolean) diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index f251a04bd..c54179c81 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -42,6 +42,9 @@ class RangeOperators(object): """Boolean expression. Returns true if the right hand operand, which can be an element or a range, is contained within the column. + + kwargs may be ignored by this operator but are required for API + conformance. """ return self.expr.op("@>", is_comparison=True)(other) |