#35334: Update Oracle backend supports_sequence_reset = True
-------------------------------------+-------------------------------------
               Reporter:  David      |          Owner:  nobody
  Sanders                            |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Database   |        Version:  5.0
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 The Oracle backend currently specifies `supports_sequence_reset = False`.
 It looks as though it's been this way since the flag was added to the
 Oracle backend since https://github.com/django/django/commit/0df4593f0ed.

 This commit appears to have been for the 1.5 release [1] which was
 released in Feb 2013. A few months later Oracle 12.1 [2] was released in
 July 2013. It's quite hard to determine when `ALTER SEQUENCE … RESTART`
 support was introduced but from some pain-staking searching I found that
 apparently 12.1 included support for it but it wasn't documented until 18c
 [3]:

 > There is a new option for altering a sequence that appeared in 12.1 but
 was not documented until 18c:
 > `alter SEQUENCE [schema_name.]{sequence_name} restart;`


 [1] https://docs.djangoproject.com/en/5.0/releases/1.5/
 [2] https://en.wikipedia.org/wiki/Oracle_Database#Releases_and_versions
 [3] https://www.red-gate.com/simple-talk/databases/oracle-databases
 /oracle-sequences-12c-features-including-identity/
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35334>
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/0107018e7ee923df-bf5fddc6-4973-4dec-aba1-8bbf89b78ed2-000000%40eu-central-1.amazonses.com.

Reply via email to