Tag: cws_src680_mysqlnative User: oj Date: 2008-06-03 11:45:02+0000 Modified: dba/connectivity/source/drivers/mysqlc/mysqlc_connection.cxx
Log: #i20563# socket impl File Changes: Directory: /dba/connectivity/source/drivers/mysqlc/ =================================================== File [changed]: mysqlc_connection.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mysqlc/mysqlc_connection.cxx?r1=1.1.2.3&r2=1.1.2.4 Delta lines: +13 -10 --------------------- --- mysqlc_connection.cxx 2008-06-03 08:37:44+0000 1.1.2.3 +++ mysqlc_connection.cxx 2008-06-03 11:44:59+0000 1.1.2.4 @@ -7,7 +7,7 @@ * * $RCSfile: mysqlc_connection.cxx,v $ * -* $Revision: 1.1.2.3 $ +* $Revision: 1.1.2.4 $ * * This file is part of OpenOffice.org. * @@ -149,20 +149,23 @@ } // get user and password for mysql connection - const PropertyValue *pBegin = info.getConstArray(); - const PropertyValue *pEnd = pBegin + info.getLength(); - OUString aUser,aPass; - - for(;pBegin != pEnd;++pBegin) { - if (!pBegin->Name.compareToAscii("user")) - pBegin->Value >>= aUser; - else if (!pBegin->Name.compareToAscii("password")) - pBegin->Value >>= aPass; + const PropertyValue *pIter = info.getConstArray(); + const PropertyValue *pEnd = pIter + info.getLength(); + OUString aUser,aPass,sLocalSocket; + + for(;pIter != pEnd;++pIter) { + if (!pIter->Name.compareToAscii("user")) + pIter->Value >>= aUser; + else if (!pIter->Name.compareToAscii("password")) + pIter->Value >>= aPass; + else if (!pIter->Name.compareToAscii("LocalSocket")) + pIter->Value >>= sLocalSocket; } if (bEmbedded == sal_False) { m_settings.pConnection = mysql_init(NULL); + /// TODO: use of sLocalSocket if (!mysql_real_connect(m_settings.pConnection, OUStringToOString(aHostName, m_settings.encoding).getStr(), OUStringToOString(aUser, m_settings.encoding).getStr(), --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
