Applied fix provided by Amin for localhost socket connection fos testig and dev
git-svn-id: file:///home/svn/framework3/trunk@8084 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
f9f4f31fdd
commit
1bd6872c6f
|
@ -187,7 +187,7 @@ class RbMysql
|
|||
begin
|
||||
Timeout.timeout conn_timeout do
|
||||
if host.nil? or host.empty? or host == "localhost"
|
||||
socket ||= ENV["MYSQL_UNIX_PORT"] || MYSQL_UNIX_PORT
|
||||
socket = ENV["MYSQL_UNIX_PORT"] || MYSQL_UNIX_PORT
|
||||
@sock = UNIXSocket.new socket
|
||||
else
|
||||
if !socket
|
||||
|
|
Loading…
Reference in New Issue