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
dd9b3312
Kaydet (Commit)
dd9b3312
authored
Tem 14, 2014
tarafından
Shai Berger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed name of database connection feature
üst
f7a78f9b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
__init__.py
django/db/backends/__init__.py
+2
-3
base.py
django/db/backends/oracle/base.py
+1
-1
base.py
django/db/models/base.py
+1
-1
test_models.py
tests/invalid_models_tests/test_models.py
+1
-1
No files found.
django/db/backends/__init__.py
Dosyayı görüntüle @
dd9b3312
...
...
@@ -520,9 +520,8 @@ class BaseDatabaseFeatures(object):
# at the end of each save operation?
supports_forward_references
=
True
# Does the backend uses proper method like 'truncate_name'
# to auto-truncate column names?
truncates_name
=
False
# Does the backend truncate names properly when they are too long?
truncates_names
=
False
# Is there a REAL datatype in addition to floats/doubles?
has_real_datatype
=
False
...
...
django/db/backends/oracle/base.py
Dosyayı görüntüle @
dd9b3312
...
...
@@ -107,7 +107,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_bitwise_or
=
False
can_defer_constraint_checks
=
True
supports_partially_nullable_unique_constraints
=
False
truncates_name
=
True
truncates_name
s
=
True
has_bulk_insert
=
True
supports_tablespaces
=
True
supports_sequence_reset
=
False
...
...
django/db/models/base.py
Dosyayı görüntüle @
dd9b3312
...
...
@@ -1479,7 +1479,7 @@ class Model(six.with_metaclass(ModelBase)):
continue
connection
=
connections
[
db
]
max_name_length
=
connection
.
ops
.
max_name_length
()
if
max_name_length
is
None
or
connection
.
features
.
truncates_name
:
if
max_name_length
is
None
or
connection
.
features
.
truncates_name
s
:
continue
else
:
if
allowed_len
is
None
:
...
...
tests/invalid_models_tests/test_models.py
Dosyayı görüntüle @
dd9b3312
...
...
@@ -18,7 +18,7 @@ def get_max_column_name_length():
for
db
in
settings
.
DATABASES
.
keys
():
connection
=
connections
[
db
]
max_name_length
=
connection
.
ops
.
max_name_length
()
if
max_name_length
is
None
or
connection
.
features
.
truncates_name
:
if
max_name_length
is
None
or
connection
.
features
.
truncates_name
s
:
continue
else
:
if
allowed_len
is
None
:
...
...
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