summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql_psycopg2
Commit message (Collapse)AuthorAgeFilesLines
* Refs #25175 -- Removed db.backends.postgresql_psycopg2 per deprecation timeline.Tim Graham2019-01-179-17/+0
|
* Removed postgresql_psycopg2.versionMariusz Felisiak2017-08-211-1/+0
| | | Uneeded since 29ea9714ee23525000dd8bdb7a9aafb2147de8c7.
* Refs #25175 -- Deprecated db.backends.postgresql_psycopg2 module.Tim Graham2017-01-251-0/+9
|
* Refs #25175 -- Added backwards compatibility for importing ↵Caio Ariede2015-08-0710-0/+9
| | | | postgresql_psycopg2 backend.
* Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.Caio Ariede2015-08-0710-984/+0
|
* Fixed #23658 -- Provided the password to PostgreSQL dbshell commandJean-Michel Vourgère2015-06-301-10/+57
| | | | | | The password from settings.py is written in a temporary .pgpass file file whose name is given to psql using the PGPASSFILE environment variable.
* Fixed #25002 -- Used PostgreSQL column type alteration USING clause.Simon Charette2015-06-221-0/+3
| | | | Thanks to Dirk Uys for the report.
* Fixed #23804 -- Added RasterField for PostGIS.Daniel Wiesmann2015-06-191-9/+11
| | | | Thanks to Tim Graham and Claude Paroz for the reviews and patches.
* Fixed #24767 -- Added Greatest and Least expressionsIan Foote2015-06-051-0/+1
| | | | Greatest and Least are row-level Function versions of Min and Max.
* Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in ↵Tim Graham2015-06-021-8/+8
| | | | PostgreSQL
* Fixed #9596 -- Added date transform for DateTimeField.Jon Dufresne2015-06-021-12/+12
|
* Well, what should I say: UPS.Florian Apolloner2015-05-241-1/+0
|
* Fixed #24844 -- Corrected has_changed implementation for HStoreField.Andrea Grandi2015-05-241-0/+1
|
* Dropped the needs_datetime_string_cast feature.Aymeric Augustin2015-05-171-1/+0
| | | | It has been superseded by the converter infrastructure.
* Fixed #23820 -- Supported per-database time zone.Aymeric Augustin2015-05-171-5/+3
| | | | | | | | | The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
* Renamed value_to_db_xxx to adapt_xxxfield_value.Aymeric Augustin2015-05-171-4/+4
| | | | | This mirrors convert_xxxfield_value nicely, taking advantage of the adapter/converter terminology which is commonly used by DB-API modules.
* Fixed #24791 -- Added fallback when 'postgres' database isn't availableClaude Paroz2015-05-151-0/+26
| | | | Thanks Carl Meyer and Tim Graham for the reviews.
* Fixed #24595 -- Prevented loss of null info in MySQL field alterationClaude Paroz2015-04-171-3/+6
| | | | | Thanks Simon Percivall for the report, and Simon Charette and Tim Graham for the reviews.
* Fixed #19259 -- Added group by selected primary keys support.Simon Charette2015-03-291-0/+1
|
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-1/+1
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for ↵Tim Graham2015-02-161-26/+18
| | | | contrib.postgres).
* Removed 'autocommit' options for the psycopg2 backend.Aymeric Augustin2015-02-141-4/+1
| | | | It was documented as not having any effect since Django 1.6.
* Cleaned up init_connection_state in the psycopg2 backend.Aymeric Augustin2015-02-141-19/+18
| | | | settings_dict['TIME_ZONE'] is set in ConnectionHandler.ensure_defaults.
* Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.Aymeric Augustin2015-02-141-5/+23
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-064-14/+14
|
* Removed PostgreSQL DatabaseWrapper._set_isolation_level().Tim Graham2015-01-311-7/+0
| | | | This method is unused since 8717b0668caf00ec5e81ef5a1e31b4d7c64eee8a.
* Removed obsolete SQL generation methods.Tim Graham2015-01-181-38/+0
|
* Required sqlparse for SQL splitting per deprecation timeline.Tim Graham2015-01-171-1/+1
|
* Fixed #24092 -- Widened base field support for ArrayField.Marc Tamlyn2015-01-163-7/+32
| | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-148-49/+56
|
* Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski2015-01-121-0/+12
|
* Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz2015-01-121-9/+10
| | | | | Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
* Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham2014-12-312-36/+35
| | | | refs #22340.
* Removed db.backends methods which only call super().Tim Graham2014-12-301-2/+0
|
* Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn2014-12-231-0/+1
| | | | | | | | | | | Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than storing as a NUMBER(19) of microseconds. There are issues with cx_Oracle which require some extra data manipulation in the database backend when constructing queries, but it handles the conversion back to timedelta objects cleanly. Thanks to Shai for the review.
* Fixed #2443 -- Added DurationField.Marc Tamlyn2014-12-203-17/+2
| | | | | | | | | | | A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-1/+1
| | | | comprehension
* Fixed #23954 -- Added special text/varchar PostgreSQL indexes in migrationsClaude Paroz2014-12-041-0/+22
| | | | Thanks adityagupta104 for the report and Tim Graham for the review.
* Fixed #23807 -- Ignored non-digits in psycopg2 versionAndriy Sokolovskiy2014-12-011-1/+1
|
* Fixed #16731 -- Made pattern lookups work properly with F() expressionsThomas Chaumeny2014-11-281-2/+15
|
* Added AutoField introspection for PostgreSQLClaude Paroz2014-11-202-3/+15
| | | | Refs #23748.
* Factorized schema_editor() at BaseDatabaseWrapper levelClaude Paroz2014-09-261-4/+1
|
* Fixed flake8 warnings.Tim Graham2014-09-241-1/+1
|
* Made get_table_list return a TableInfo named tupleClaude Paroz2014-09-231-5/+9
|
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-162-0/+3
| | | | Uses native support in postgres, and char(32) on other backends.
* Limited lines to 119 characters in django/Tim Graham2014-09-053-20/+32
| | | | refs #23395.
* Fixed #22234 -- Replaced OS-specific code with subprocess.call() in dbshell.Mihail Milushev2014-08-041-6/+2
| | | | This fixes escaping of special characters on Windows.
* Fixed #23108 -- Dropped support for PostgreSQL 8.4 & PostGIS 1.3, 1.4.Tim Graham2014-08-011-6/+6
| | | | Thanks Claude Paroz for the review.
* Fixed #23074 -- Avoided leaking savepoints in atomic.Aymeric Augustin2014-07-281-0/+1
| | | | Thanks Chow Loong Jin for the report and the initial patch.
* Fixed #22514 -- Prevented indexes on virtual fields [postgres].Vlastimil Zíma2014-06-201-2/+2
|