Ticket #5122: django-mysql-prompt.diff
File django-mysql-prompt.diff, 861 bytes (added by , 17 years ago) |
---|
-
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 prompt = settings.DATABASE_OPTIONS.get('prompt', None) 11 12 defaults_file = settings.DATABASE_OPTIONS.get('read_default_file') 12 13 # Seems to be no good way to set sql_mode with CLI 13 14 … … 21 22 args += ["--host=%s" % host] 22 23 if port: 23 24 args += ["--port=%s" % port] 25 if prompt: 26 args += ["--prompt=%s" % prompt] 24 27 if db: 25 28 args += [db] 26 29