summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2/features.py
AgeCommit message (Collapse)Author
2019-01-17Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline.Tim Graham
2015-08-07Refs #25175 -- Added backwards compatibility for importing ↵Caio Ariede
postgresql_psycopg2 backend.
2015-08-07Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede
2015-06-05Fixed #24767 -- Added Greatest and Least expressionsIan Foote
Greatest and Least are row-level Function versions of Min and Max.
2015-05-17Dropped the needs_datetime_string_cast feature.Aymeric Augustin
It has been superseded by the converter infrastructure.
2015-03-29Fixed #19259 -- Added group by selected primary keys support.Simon Charette
2015-01-16Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn
Several issues resolved here, following from a report that a base_field of GenericIpAddressField was failing. We were using get_prep_value instead of get_db_prep_value in ArrayField which was bypassing any extra modifications to the value being made in the base field's get_db_prep_value. Changing this broke datetime support, so the postgres backend has gained the relevant operation methods to send dates/times/datetimes directly to the db backend instead of casting them to strings. Similarly, a new database feature has been added allowing the uuid to be passed directly to the backend, as we do with timedeltas. On the other side, psycopg2 expects an Inet() instance for IP address fields, so we add a value_to_db_ipaddress method to wrap the strings on postgres. We also have to manually add a database adapter to psycopg2, as we do not wish to use the built in adapter which would turn everything into Inet() instances. Thanks to smclenithan for the report.
2015-01-14Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham