Ticket #12343: dbshell-over-socket.patch
File dbshell-over-socket.patch, 561 bytes (added by , 15 years ago) |
---|
-
django/db/backends/mysql/client.py
old new class DatabaseClient(BaseDatabaseClient) 24 24 if passwd: 25 25 args += ["--password=%s" % passwd] 26 26 if host: 27 args += ["--host=%s" % host] 27 if '/' in host: 28 args += ["--socket=%s" % host] 29 else: 30 args += ["--host=%s" % host] 28 31 if port: 29 32 args += ["--port=%s" % port] 30 33 if db: