incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1390836 - /incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx
Date Thu, 27 Sep 2012 04:20:34 GMT
Author: arielch
Date: Thu Sep 27 04:20:34 2012
New Revision: 1390836

URL: http://svn.apache.org/viewvc?rev=1390836&view=rev
Log:
Ensure socket or pipe are passed to the native driver

Modified:
    incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx

Modified: incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx?rev=1390836&r1=1390835&r2=1390836&view=diff
==============================================================================
--- incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx (original)
+++ incubator/ooo/trunk/main/connectivity/source/drivers/mysql/YDriver.cxx Thu Sep 27 04:20:34
2012
@@ -355,6 +355,25 @@ namespace connectivity
 					,Sequence< ::rtl::OUString >())
 					);
 		}
+		else if ( eType == D_NATIVE )
+        {
+            aDriverInfo.push_back(DriverPropertyInfo(
+                    ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("LocalSocket"))
+                    ,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+                        "The file path of a socket to connect to a local MySQL server."))
+                    ,sal_False
+                    ,::rtl::OUString()
+                    ,Sequence< ::rtl::OUString >())
+                    );
+            aDriverInfo.push_back(DriverPropertyInfo(
+                    ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NamedPipe"))
+                    ,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
+                        "The name of a pipe to connect to a local MySQL server."))
+                    ,sal_False
+                    ,::rtl::OUString()
+                    ,Sequence< ::rtl::OUString >())
+                    );
+        }
 
         return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());

 	}



Mime
View raw message