summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/introspection.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #470 -- Added support for database defaults on fields.Ian Foote2023-05-121-1/+1
| | | | | | | | Special thanks to Hannes Ljungberg for finding multiple implementation gaps. Thanks also to Simon Charette, Adam Johnson, and Mariusz Felisiak for reviews.
* Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul2022-12-281-8/+32
| | | | | | | | Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Made inspectdb used Cursor.description.display_size for CharFields' max_length.Mariusz Felisiak2022-12-081-6/+7
| | | internal_size is size for fixed-size types not for char types.
* Used more augmented assignment statements.Nick Pope2022-10-311-1/+1
| | | | | | Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
* Fixed #32234 -- Made inspectdb inform about composite primary keys.Anv3sh2022-06-011-5/+5
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-7/+20
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-75/+108
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-12/+30
| | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
* Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak2021-11-101-14/+0
| | | Thanks Simon Charette for the report.
* Fixed DatabaseIntrospection.get_relations() docstring.Tim Graham2021-11-101-1/+1
| | | The foreign keys are "in" the given table, not "to" it.
* Fixed #30916 -- Added support for functional unique constraints.Hannes Ljungberg2021-02-231-3/+4
| | | | Thanks Ian Foote and Mariusz Felisiak for reviews.
* Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick2020-09-211-10/+19
| | | | Thanks Simon Charette and Mariusz Felisiak for reviews.
* Fixed #31751 -- Fixed database introspection with cx_Oracle 8.Mariusz Felisiak2020-06-301-16/+35
|
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-6/+19
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-0/+2
|
* Optimized Oracle PKs introspection by adding get_primary_key_column().Mariusz Felisiak2019-01-181-0/+16
|
* Refs #29722 -- Added introspection of materialized views for Oracle.Mariusz Felisiak2018-11-261-2/+14
| | | Thanks Tim Graham for the review.
* Fixed #29949 -- Refactored db introspection identifier converters.Mariusz Felisiak2018-11-211-11/+22
| | | | | | | | | Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
* Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.Mariusz Felisiak2018-10-211-0/+1
| | | Thanks Tim Graham for the review.
* Refs #28909 -- Simplifed code using unpacking generalizations.Nick Pope2017-12-211-7/+4
|
* Refs #27098 -- Removed DatabaseIntrospection.get_indexes() per deprecation ↵Tim Graham2017-09-221-36/+0
| | | | timeline.
* Refs #27090 -- Added real database sequence introspection.Mariusz Felisiak2017-09-131-0/+28
| | | | Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the review.
* Fixed #28364 -- Removed redundant table joins in Oracle's ↵Mariusz Felisiak2017-07-061-8/+2
| | | | DatabaseIntrospection.get_relations().
* Removed obsolete comment about IntegerField introspection on Oracle.Mariusz Felisiak2017-07-041-1/+0
| | | | Obsolete since e9d12bae1e59e51738c11c492c620f56f96106bf.
* Fixed #28258 -- Optimized Oracle introspection by using LISTAGG.Mariusz Felisiak2017-06-021-63/+42
| | | | Thanks Tim Graham and Jani Tiainen for reviews.
* Refs #26682 -- Added AutoField introspection on Oracle.Mariusz Felisiak2017-06-011-7/+16
|
* Removed unused DatabaseIntrospection._name_to_index() from Oracle backend.Mariusz Felisiak2017-04-181-7/+0
| | | Unused since its introduction in cac7675f247da325cb862a312804fe64845d1155.
* Refs #27795 -- Removed unneeded force_text calls from the Oracle backend.Mariusz Felisiak2017-04-171-2/+1
|
* Fixed #27924 -- Added support for cx_Oracle 5.3.Mariusz Felisiak2017-03-101-1/+7
| | | | | | | - Fixed Oracle backend due to cx_Oracle 5.3 change in the Cursor.description behavior i.e. "Use None instead of 0 for items in the Cursor.description attribute that do not have any validity.". - Used cx_Oracle.Object.size() instead of len(). Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-8/+10
|
* Fixed #27135 -- Made index introspection return Index.suffix.Tim Graham2017-02-151-1/+1
|
* Fixed #27822 -- Replaced deprecated cx_Oracle types in ↵Mariusz Felisiak2017-02-091-10/+3
| | | | DatabaseIntrospection.data_types_reverse.
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed misc references to Python 2.Tim Graham2017-01-211-1/+1
|
* Refs #19884 -- Added CharField max_length introspection on Oracle.Mariusz Felisiak2016-12-191-5/+13
|
* Refs #27324 -- Optimized DatabaseIntrospection.get_constraints() for foreign ↵Mariusz Felisiak2016-12-051-4/+2
| | | | keys on Oracle.
* Refs #24245 -- Added introspection for database defaults on Oracle.Mariusz Felisiak2016-11-301-1/+9
|
* Fixed #27324 -- Simplified DatabaseIntrospection.get_constraints() on Oracle.Mariusz Felisiak2016-10-141-39/+17
|
* Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexesClaude Paroz2016-09-121-0/+7
| | | | | Thanks Akshesh <aksheshdoshi@gmail.com> for help with the PostgreSQL query. Thanks Tim Graham for the review.
* Fixed #27097 -- Added index type introspection to built-in db backends.Akshesh2016-09-021-6/+7
|
* Refs #20888 -- Added index order introspection.Akshesh2016-08-121-2/+4
|
* Removed unused foreign_key_re variables in MySQL/Oracle DB backendsAdam Chainz2015-02-181-4/+0
|
* Fixed #24200 -- Made introspection bypass statement cacheJosh Smeaton2015-02-101-1/+6
|
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-1/+3
|
* Fixed test failures in Oracle introspectionShai Berger2015-01-131-1/+1
| | | | Refs #17785
* Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz2015-01-121-3/+3
| | | | | Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-1/+1
| | | | comprehension
* Made get_table_list return a TableInfo named tupleClaude Paroz2014-09-231-4/+7
|
* Made Oracle introspect FloatFields correctlyShai Berger2014-01-301-10/+13
| | | | | | | | | | Broke InspectDBTestCase.test_field_types in two: - a test_number_field_types, which now passes on Oracle too - a test_field_types, for all non-numeric fields, which is still expected to fail Also made some pep8 fixes in the tests file. Refs #19884 Thanks Tim Graham for review.
* Made Oracle introspect boolean fieldsShai Berger2014-01-291-0/+2
| | | | | Fixed failing test schema.tests.SchemaTests.test_add_field_temp_default_boolean Refs #19884