Ticket #35136: intarray-compat.patch

File intarray-compat.patch, 849 bytes (added by Jan Hamal Dvořák, 8 months ago)

Proposed change

  • django/contrib/postgres/lookups.py

    diff --git a/django/contrib/postgres/lookups.py b/django/contrib/postgres/lookups.py
    index 4e1783f288..0970ac6e27 100644
    a b from .search import SearchVector, SearchVectorExact, SearchVectorField  
    77
    88class DataContains(PostgresOperatorLookup):
    99    lookup_name = "contains"
    10     postgres_operator = "@>"
     10    postgres_operator = "OPERATOR(pg_catalog.@>)"
    1111
    1212
    1313class ContainedBy(PostgresOperatorLookup):
    1414    lookup_name = "contained_by"
    15     postgres_operator = "<@"
     15    postgres_operator = "OPERATOR(pg_catalog.<@)"
    1616
    1717
    1818class Overlap(PostgresOperatorLookup):
    1919    lookup_name = "overlap"
    20     postgres_operator = "&&"
     20    postgres_operator = "OPERATOR(pg_catalog.&&)"
    2121
    2222    def get_prep_lookup(self):
    2323        from .expressions import ArraySubquery
Back to Top