Ticket #5122: dbprompt.diff
File dbprompt.diff, 1009 bytes (added by , 17 years ago) |
---|
-
usr/local/src/django/django/db/backends/mysql/client.py
8 8 passwd = settings.DATABASE_OPTIONS.get('passwd', settings.DATABASE_PASSWORD) 9 9 host = settings.DATABASE_OPTIONS.get('host', settings.DATABASE_HOST) 10 10 port = settings.DATABASE_OPTIONS.get('port', settings.DATABASE_PORT) 11 if settings.DATABASE_PROMPT: 12 prompt = settings.DATABASE_PROMPT 13 else: 14 prompt = None 11 15 defaults_file = settings.DATABASE_OPTIONS.get('read_default_file') 12 16 # Seems to be no good way to set sql_mode with CLI 13 17 … … 21 25 args += ["--host=%s" % host] 22 26 if port: 23 27 args += ["--port=%s" % port] 28 if prompt: 29 args += ["--prompt=%s" % prompt] 24 30 if db: 25 31 args += [db] 26 32