#35334: Update Oracle backend supports_sequence_reset = True
-------------------------------------+-------------------------------------
Reporter: David Sanders | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by David Sanders):
Interestingly someone's already added the required sequence reset methods
to `db.backends.oracle.operations.DatabaseOperations` to support flushing:
https://github.com/django/django/blob/d658a3162fbeb68d148d1b2fcf4da4fe1437eddb/django/db/backends/oracle/operations.py#L526
The Oracle attribute
[https://github.com/django/django/blob/d658a3162fbeb68d148d1b2fcf4da4fe1437eddb/django/db/backends/oracle/operations.py#L39
DatabaseOperations.__sequence_reset_sql()] appears to have origins way
back to 2007 when it was first added as
[https://github.com/django/django/commit/ac64e91a0cadc57f4bc5c#diff-
5cae5e1a70c0f5badce41576684234d402babf2aa2546e5c2166d9041137458dR198
_get_sequence_reset_sql()]
It looks like that could be simplified to use the `ALTER` syntax?
--
Ticket URL: <https://code.djangoproject.com/ticket/35334#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018e806d61ce-60ada53c-78a3-4dff-9195-553fb457127a-000000%40eu-central-1.amazonses.com.