Changes between Initial Version and Version 1 of Ticket #35334, comment 2
- Timestamp:
- Mar 27, 2024, 10:02:04 AM (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35334, comment 2
initial v1 1 1 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 2 2 3 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()]3 The Oracle attribute [https://github.com/django/django/blob/d658a3162fbeb68d148d1b2fcf4da4fe1437eddb/django/db/backends/oracle/operations.py#L39 DatabaseOperations.__sequence_reset_sql()], which uses a PL/SQL block, 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()] 4 4 5 5 It looks like that could be simplified to use the `ALTER` syntax?