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
284b3221
Kaydet (Commit)
284b3221
authored
Ara 05, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #30013 -- Fixed DatabaseOperations.last_executed_query() with mysqlclient 1.3.14+.
üst
fbc7e413
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
operations.py
django/db/backends/mysql/operations.py
+2
-2
operations.py
django/db/backends/oracle/operations.py
+1
-1
2.1.5.txt
docs/releases/2.1.5.txt
+1
-2
No files found.
django/db/backends/mysql/operations.py
Dosyayı görüntüle @
284b3221
...
...
@@ -138,10 +138,10 @@ class DatabaseOperations(BaseDatabaseOperations):
return
[(
None
,
(
"NULL"
,
[],
False
))]
def
last_executed_query
(
self
,
cursor
,
sql
,
params
):
# With MySQLdb, cursor objects have an (undocumented) "_
last_
executed"
# With MySQLdb, cursor objects have an (undocumented) "_executed"
# attribute where the exact query sent to the database is saved.
# See MySQLdb/cursors.py in the source distribution.
query
=
getattr
(
cursor
,
'_
last_
executed'
,
None
)
query
=
getattr
(
cursor
,
'_executed'
,
None
)
if
query
is
not
None
:
query
=
query
.
decode
(
errors
=
'replace'
)
return
query
...
...
django/db/backends/oracle/operations.py
Dosyayı görüntüle @
284b3221
...
...
@@ -258,7 +258,7 @@ END;
# https://cx-oracle.readthedocs.io/en/latest/cursor.html#Cursor.statement
# The DB API definition does not define this attribute.
statement
=
cursor
.
statement
# Unlike Psycopg's `query` and MySQLdb`'s `_
last_
executed`, CxOracle's
# Unlike Psycopg's `query` and MySQLdb`'s `_executed`, CxOracle's
# `statement` doesn't contain the query parameters. refs #20010.
return
super
()
.
last_executed_query
(
cursor
,
statement
,
params
)
...
...
docs/releases/2.1.5.txt
Dosyayı görüntüle @
284b3221
...
...
@@ -10,4 +10,4 @@ Django 2.1.5 fixes several bugs in 2.1.4.
Bugfixes
========
* ...
\ No newline at end of file
* Fixed compatibility with mysqlclient 1.3.14 (:ticket:`30013`).
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