Ticket #10357: sqlite3.patch

File sqlite3.patch, 793 bytes (added by markshep, 16 years ago)
Line 
1*** django/db/backends/sqlite3/client.py~ Wed Nov 19 05:44:06 2008
2--- django/db/backends/sqlite3/client.py Wed Feb 25 17:00:07 2009
3***************
4*** 1,10 ****
5 from django.db.backends import BaseDatabaseClient
6 from django.conf import settings
7! import os
8
9 class DatabaseClient(BaseDatabaseClient):
10 executable_name = 'sqlite3'
11
12 def runshell(self):
13! args = ['', settings.DATABASE_NAME]
14! os.execvp(self.executable_name, args)
15--- 1,10 ----
16 from django.db.backends import BaseDatabaseClient
17 from django.conf import settings
18! import subprocess
19
20 class DatabaseClient(BaseDatabaseClient):
21 executable_name = 'sqlite3'
22
23 def runshell(self):
24! args = [self.executable_name, settings.DATABASE_NAME]
25! subprocess.call(args)
Back to Top