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
bf5382c6
Kaydet (Commit)
bf5382c6
authored
Mar 09, 2014
tarafından
Mihail Milushev
Kaydeden (comit)
Tim Graham
Agu 04, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #22234 -- Replaced OS-specific code with subprocess.call() in dbshell.
This fixes escaping of special characters on Windows.
üst
e4dd8b5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
24 deletions
+8
-24
client.py
django/db/backends/mysql/client.py
+2
-6
client.py
django/db/backends/oracle/client.py
+2
-6
client.py
django/db/backends/postgresql_psycopg2/client.py
+2
-6
client.py
django/db/backends/sqlite3/client.py
+2
-6
No files found.
django/db/backends/mysql/client.py
Dosyayı görüntüle @
bf5382c6
import
os
import
subprocess
import
sys
from
django.db.backends
import
BaseDatabaseClient
from
django.db.backends
import
BaseDatabaseClient
...
@@ -34,7 +33,4 @@ class DatabaseClient(BaseDatabaseClient):
...
@@ -34,7 +33,4 @@ class DatabaseClient(BaseDatabaseClient):
if
db
:
if
db
:
args
+=
[
db
]
args
+=
[
db
]
if
os
.
name
==
'nt'
:
subprocess
.
call
(
args
)
sys
.
exit
(
os
.
system
(
" "
.
join
(
args
)))
else
:
os
.
execvp
(
self
.
executable_name
,
args
)
django/db/backends/oracle/client.py
Dosyayı görüntüle @
bf5382c6
import
os
import
subprocess
import
sys
from
django.db.backends
import
BaseDatabaseClient
from
django.db.backends
import
BaseDatabaseClient
...
@@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
...
@@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
def
runshell
(
self
):
def
runshell
(
self
):
conn_string
=
self
.
connection
.
_connect_string
()
conn_string
=
self
.
connection
.
_connect_string
()
args
=
[
self
.
executable_name
,
"-L"
,
conn_string
]
args
=
[
self
.
executable_name
,
"-L"
,
conn_string
]
if
os
.
name
==
'nt'
:
subprocess
.
call
(
args
)
sys
.
exit
(
os
.
system
(
" "
.
join
(
args
)))
else
:
os
.
execvp
(
self
.
executable_name
,
args
)
django/db/backends/postgresql_psycopg2/client.py
Dosyayı görüntüle @
bf5382c6
import
os
import
subprocess
import
sys
from
django.db.backends
import
BaseDatabaseClient
from
django.db.backends
import
BaseDatabaseClient
...
@@ -17,7 +16,4 @@ class DatabaseClient(BaseDatabaseClient):
...
@@ -17,7 +16,4 @@ class DatabaseClient(BaseDatabaseClient):
if
settings_dict
[
'PORT'
]:
if
settings_dict
[
'PORT'
]:
args
.
extend
([
"-p"
,
str
(
settings_dict
[
'PORT'
])])
args
.
extend
([
"-p"
,
str
(
settings_dict
[
'PORT'
])])
args
+=
[
settings_dict
[
'NAME'
]]
args
+=
[
settings_dict
[
'NAME'
]]
if
os
.
name
==
'nt'
:
subprocess
.
call
(
args
)
sys
.
exit
(
os
.
system
(
" "
.
join
(
args
)))
else
:
os
.
execvp
(
self
.
executable_name
,
args
)
django/db/backends/sqlite3/client.py
Dosyayı görüntüle @
bf5382c6
import
os
import
subprocess
import
sys
from
django.db.backends
import
BaseDatabaseClient
from
django.db.backends
import
BaseDatabaseClient
...
@@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
...
@@ -10,7 +9,4 @@ class DatabaseClient(BaseDatabaseClient):
def
runshell
(
self
):
def
runshell
(
self
):
args
=
[
self
.
executable_name
,
args
=
[
self
.
executable_name
,
self
.
connection
.
settings_dict
[
'NAME'
]]
self
.
connection
.
settings_dict
[
'NAME'
]]
if
os
.
name
==
'nt'
:
subprocess
.
call
(
args
)
sys
.
exit
(
os
.
system
(
" "
.
join
(
args
)))
else
:
os
.
execvp
(
self
.
executable_name
,
args
)
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