diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-26 05:37:21 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-26 05:37:21 +0000 |
commit | cac7675f247da325cb862a312804fe64845d1155 (patch) | |
tree | 65ba546f7717683a684210c4d5d8ea43061a5c11 /django/db/backends/oracle/client.py | |
parent | 0fd9eef86f56b8dfe219bb0a45f6e5ff8bb75226 (diff) | |
download | django-cac7675f247da325cb862a312804fe64845d1155.tar.gz |
Added half of oracle backend. (The other half is all of the special-casing in django/db/models/query.py, which I will be refactoring.) Refs #1990. Thanks, Jason Huggins and tzellman
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2986 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/oracle/client.py')
-rw-r--r-- | django/db/backends/oracle/client.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/django/db/backends/oracle/client.py b/django/db/backends/oracle/client.py new file mode 100644 index 0000000000..7e32ebef2f --- /dev/null +++ b/django/db/backends/oracle/client.py @@ -0,0 +1,10 @@ +from django.conf import settings +import os + +def runshell(): + args = '' + args += settings.DATABASE_USER + if settings.DATABASE_PASSWORD: + args += "/%s" % settings.DATABASE_PASSWORD + args += "@%s" % settings.DATABASE_NAME + os.execvp('sqlplus', args) |