mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[1.11.x] Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.
Regression in69b7d4b116. Backport ofc6a3546093from master
This commit is contained in:
committed by
Tim Graham
parent
60f81118f4
commit
90be8cf2a4
@@ -128,6 +128,14 @@ class OracleTests(unittest.TestCase):
|
||||
cursor.execute(query)
|
||||
self.assertEqual(cursor.fetchone()[0], 1)
|
||||
|
||||
def test_sequence_name_truncation(self):
|
||||
seq_name = connection.ops._get_sequence_name('schema_authorwithevenlongee869')
|
||||
self.assertEqual(seq_name, 'SCHEMA_AUTHORWITHEVENLOB0B8_SQ')
|
||||
|
||||
def test_trigger_name_truncation(self):
|
||||
trigger_name = connection.ops._get_trigger_name('schema_authorwithevenlongee869')
|
||||
self.assertEqual(trigger_name, 'SCHEMA_AUTHORWITHEVENLOB0B8_TR')
|
||||
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'sqlite', "Test only for SQLite")
|
||||
class SQLiteTests(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user