Ticket #6517: mysql_client.patch
File mysql_client.patch, 776 bytes (added by , 17 years ago) |
---|
-
db/backends/mysql/client.py
9 9 host = settings.DATABASE_OPTIONS.get('host', settings.DATABASE_HOST) 10 10 port = settings.DATABASE_OPTIONS.get('port', settings.DATABASE_PORT) 11 11 defaults_file = settings.DATABASE_OPTIONS.get('read_default_file') 12 charset = settings.DATABASE_OPTIONS.get('charset', '') 12 13 # Seems to be no good way to set sql_mode with CLI 13 14 14 15 if defaults_file: … … 23 24 args += ["--port=%s" % port] 24 25 if db: 25 26 args += [db] 27 if charset: 28 args += ["--default-character-set=%s" % charset] 26 29 27 30 os.execvp('mysql', args)