summaryrefslogtreecommitdiff
path: root/django/db/backends/oracle/creation.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-6/+10
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-123/+183
|
* Fixed #31359 -- Deprecated get_random_string() calls without an explicit length.Claude Paroz2020-03-111-1/+1
|
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-1/+1
|
* Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis2019-02-131-9/+9
| | | | Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
* Refs #29722 -- Added introspection of materialized views for Oracle.Mariusz Felisiak2018-11-261-5/+8
| | | Thanks Tim Graham for the review.
* Fixed #29788 -- Added support for Oracle Managed File (OMF) tablespaces.Mariusz Felisiak2018-11-131-10/+29
|
* Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz2018-08-221-9/+9
|
* Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz2018-07-191-34/+36
| | | | stream.
* Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope2017-12-111-2/+1
|
* Fixed #28853 -- Updated connection.cursor() uses to use a context manager.Jon Dufresne2017-11-281-76/+71
|
* Fixed #28498 -- Fixed test database creation with cx_Oracle 6.Mariusz Felisiak2017-08-161-0/+4
|
* Fixed #28260 -- Allowed customizing the test tablespace initial and ↵Mariusz Felisiak2017-06-021-8/+24
| | | | | autoextend size on Oracle. Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-14/+14
|
* Fixed #25898 -- Made test database/user creation on Oracle reraise ↵Mariusz Felisiak2017-02-091-6/+8
| | | | | unexpected errors. Thanks Shai Berger and Tim Graham for review.
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-1/+0
| | | | Thanks Tim Graham for the review.
* Refs #27690 -- Removed sleep before drop test db on Oracle.Mariusz Felisiak2017-01-161-2/+0
|
* Refs #27420 -- Removed exception hiding in Oracle test user creation during ↵Mariusz Felisiak2016-11-081-3/+0
| | | | | | | --keepdb. If the test user creation fails here, _create_test_db() would return without switching to the test user which caused the tests to run using the main connection instead of the test user.
* Fixed #27420 -- Quoted the Oracle test user password in queries.Mariusz Felisiak2016-11-081-2/+2
|
* Fixed CVE-2016-9013 -- Generated a random database user password when ↵Marti Raudsepp2016-11-011-4/+12
| | | | | | running tests on Oracle. This is a security fix.
* Fixed #25421 -- Fixed test --keepdb option on Oracle.Mariusz Felisiak2015-09-261-17/+35
|
* Fixed #25196 -- Normalized database representations in test database messages.Ville Skyttä2015-09-251-2/+2
| | | | Left over Oracle mostly as-is since it's more complicated.
* Changed Oracle's test-database-creation to use an explicit main-db-connectionShai Berger2015-06-201-6/+33
| | | | | | | | rather than just relying on manipulation of settings to determine which invocation of connection.cursor() opens a connection to the test database and which opens a connection to the main database. Thanks Aymeric Augustin for motivation and Tim Graham for review.
* Fixed #19542: Made mirroring databases for tests work with OracleShai Berger2015-06-051-0/+8
| | | | | | | No tests are provided because there is no sane way to test database settings within the Django test suite. Thanks Aymeric Augustin for review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+0
|
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-1/+1
|
* Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham2014-12-311-43/+0
| | | | refs #22340.
* Removed db.backends methods which only call super().Tim Graham2014-12-301-3/+0
|
* Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn2014-12-231-1/+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-201-0/+1
| | | | | | | | | | | 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 #23649 -- Made Oracle test-db creation drop test-user earlier when neededShai Berger2014-10-171-2/+49
| | | | | | | | | | | | | | | Checked database destruction for ORA-29857, which happens when objects of some types are left over in an old test database (notably, such objects are created by the GIS backend). When this happens, we can resolve the issue by dropping the test-user (if we are allowed to). An alternative approach, to just switch the order of creation (so that, if the test user exists and can be dropped, it is always dropped before the tablespace) was considered; but since the user creation depends on the tablespace, this would necessitate separating the dropping of the user from its creation -- a change I am reluctant to make. Thanks Josh Smeaton and Tim Graham for reviews.
* Changed Oracle test-user creation to grant privileges instead of rolesShai Berger2014-09-241-3/+21
| | | | | | | | | | | because the roles (specifically RESOURCE) are deprecated. Also added optional support for creating views in tests, and made an introspection test fail (rather than skip) if a view cannot be created due to lacking privileges. Refs #18782 Thanks Tim Graham for review, and Josh Smeaton
* Fixed #21775 -- Allowed customization of datafile for Oracle tablespaceJosh Smeaton2014-09-171-43/+41
|
* Fixed #19463 -- Added UUIDFieldMarc Tamlyn2014-09-161-0/+1
| | | | Uses native support in postgres, and char(32) on other backends.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-5/+14
| | | | refs #23395.
* Made main user disconnect after creating test user/tablespaces on OracleShai Berger2014-08-251-0/+2
|
* Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple2014-05-281-1/+5
|
* Reorganized the database test settingsShai Berger2014-03-091-38/+24
| | | | | | | | | | Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* Fixed #20707 -- Added explicit quota assignment to Oracle test userСадовский Николай2013-09-091-0/+1
| | | | To enable testing on Oracle 12c
* Start of getting Oracle to do schema stuffAndrew Godwin2013-08-121-2/+2
|
* Merge branch 'master' into schema-alterationAndrew Godwin2013-07-221-25/+27
|\ | | | | | | | | | | | | | | | | Conflicts: django/db/backends/mysql/introspection.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/creation.py django/db/models/base.py django/db/models/loading.py
| * A large number of stylistic cleanups across django/db/Alex Gaynor2013-07-081-25/+27
| |
* | Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin2013-06-071-1/+2
|\ \ | |/ | | | | | | Conflicts: django/db/models/fields/related.py
| * (Re-)moved some importsClaude Paroz2013-05-211-1/+2
| |
* | Merge branch 'master' into schema-alterationAndrew Godwin2013-04-181-3/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: django/db/backends/__init__.py django/db/backends/mysql/base.py django/db/backends/oracle/base.py django/db/backends/oracle/creation.py django/db/backends/postgresql_psycopg2/base.py django/db/backends/sqlite3/base.py django/db/models/fields/related.py
| * Added an API to control database-level autocommit.Aymeric Augustin2013-03-111-3/+0
| |
| * Add a BinaryField model fieldClaude Paroz2013-03-021-0/+1
| | | | | | | | | | Thanks Michael Jung, Charl Botha and Florian Apolloner for review and help on the patch.
* | Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin2012-12-181-4/+6
|\ \ | |/ | | | | | | | | Conflicts: django/db/models/loading.py django/db/models/options.py
| * Made sure global settings are changed in test db creationAnssi Kääriäinen2012-11-271-4/+6
| | | | | | | | | | There was an assumption that changing connection.settings_dict changed also the settings.DATABASES values. This assumption is now gone.