mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.
Regression in 69b7d4b116.
This commit is contained in:
parent
4dfd6b88d5
commit
c6a3546093
4 changed files with 21 additions and 2 deletions
11
tests/backends/oracle/test_operations.py
Normal file
11
tests/backends/oracle/test_operations.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import unittest
|
||||
|
||||
from django.db import connection
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'oracle', 'Oracle tests')
|
||||
class OperationsTests(unittest.TestCase):
|
||||
|
||||
def test_sequence_name_truncation(self):
|
||||
seq_name = connection.ops._get_no_autofield_sequence_name('schema_authorwithevenlongee869')
|
||||
self.assertEqual(seq_name, 'SCHEMA_AUTHORWITHEVENLOB0B8_SQ')
|
||||
Loading…
Add table
Add a link
Reference in a new issue