diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2008-09-09 02:13:58 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2008-09-09 02:13:58 +0000 |
| commit | 42a878cfeadf00f036a6110941550505d4d007af (patch) | |
| tree | 77978dbd08382061fff62ba38f60a1f292b3b3b1 /django/db/backends/sqlite3 | |
| parent | 8f78d7f9402f28daadb485f582eabb7bc0bdc527 (diff) | |
db: Gave each DatabaseClient class an 'executable_name' attribute (e.g., 'psql' or 'mysql'), so that we can use it to make a more helpful error message. Refs #8978
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/sqlite3')
| -rw-r--r-- | django/db/backends/sqlite3/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/client.py b/django/db/backends/sqlite3/client.py index affb1c228c..239e72f1e9 100644 --- a/django/db/backends/sqlite3/client.py +++ b/django/db/backends/sqlite3/client.py @@ -3,6 +3,8 @@ from django.conf import settings import os class DatabaseClient(BaseDatabaseClient): + executable_name = 'sqlite3' + def runshell(self): args = ['', settings.DATABASE_NAME] - os.execvp('sqlite3', args) + os.execvp(self.executable_name, args) |
