Author: russellm Date: 2010-08-28 08:17:50 -0500 (Sat, 28 Aug 2010) New Revision: 13660
Modified: django/trunk/django/db/backends/mysql/client.py Log: Fixed #12343 -- Added support for connection-by-socket to MySQL using the dbshell management command. Thanks to [email protected] for the report, and sfllaw for the patch. Modified: django/trunk/django/db/backends/mysql/client.py =================================================================== --- django/trunk/django/db/backends/mysql/client.py 2010-08-28 12:45:03 UTC (rev 13659) +++ django/trunk/django/db/backends/mysql/client.py 2010-08-28 13:17:50 UTC (rev 13660) @@ -24,7 +24,10 @@ if passwd: args += ["--password=%s" % passwd] if host: - args += ["--host=%s" % host] + if '/' in host: + args += ["--socket=%s" % host] + else: + args += ["--host=%s" % host] if port: args += ["--port=%s" % port] if db: -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
