Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
c6a35460
Kaydet (Commit)
c6a35460
authored
Agu 12, 2017
tarafından
Kevin Grinberg
Kaydeden (comit)
Tim Graham
Agu 22, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.
Regression in
69b7d4b1
.
üst
4dfd6b88
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
AUTHORS
AUTHORS
+1
-0
operations.py
django/db/backends/oracle/operations.py
+1
-2
1.11.5.txt
docs/releases/1.11.5.txt
+8
-0
test_operations.py
tests/backends/oracle/test_operations.py
+11
-0
No files found.
AUTHORS
Dosyayı görüntüle @
c6a35460
...
...
@@ -441,6 +441,7 @@ answer newbie questions, and generally made Django that much better:
Keith Bussell <kbussell@gmail.com>
Kenneth Love <kennethlove@gmail.com>
Kent Hauser <kent@khauser.net>
Kevin Grinberg <kevin@kevingrinberg.com>
Kevin Kubasik <kevin@kubasik.net>
Kevin McConnell <kevin.mcconnell@gmail.com>
Kieran Holland <http://www.kieranholland.com>
...
...
django/db/backends/oracle/operations.py
Dosyayı görüntüle @
c6a35460
...
...
@@ -518,8 +518,7 @@ END;
AutoFields that aren't Oracle identity columns.
"""
name_length
=
self
.
max_name_length
()
-
3
sequence_name
=
'
%
s_SQ'
%
strip_quotes
(
table
)
return
truncate_name
(
sequence_name
,
name_length
)
.
upper
()
return
'
%
s_SQ'
%
truncate_name
(
strip_quotes
(
table
),
name_length
)
.
upper
()
def
_get_sequence_name
(
self
,
cursor
,
table
,
pk_name
):
cursor
.
execute
(
"""
...
...
docs/releases/1.11.5.txt
Dosyayı görüntüle @
c6a35460
...
...
@@ -15,3 +15,11 @@ Bugfixes
* Fixed test database creation with ``cx_Oracle`` 6 (:ticket:`28498`).
* Fixed select widget rendering when option values are tuples (:ticket:`28502`).
* Django 1.11 inadvertently changed the sequence and trigger naming scheme on
Oracle. This causes errors on INSERTs for some tables if
``'use_returning_into': False`` is in the ``OPTIONS`` part of ``DATABASES``.
The pre-11.1 naming scheme is now restored. Unfortunately, it necessarily
requires an update to Oracle tables created with Django 1.11.[1-4]. Use the
upgrade script in :ticket:`28451` comment 8 to update sequence and trigger
names to use the pre-1.11 naming scheme
tests/backends/oracle/test_operations.py
0 → 100644
Dosyayı görüntüle @
c6a35460
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'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment