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:
Carlos Perez 2010-01-07 17:54:21 +00:00
parent f9f4f31fdd
commit 1bd6872c6f
1 changed files with 1 additions and 1 deletions

View File

@ -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