summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-09-27 03:20:34 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-09-27 03:20:34 +0000
commitad1186563ea12ce63dfdf738c332bf712084f633 (patch)
treeab20c4fa2ef5bc7bf7b709e3c37d39692e1dd7df /connectivity/source
parentfe3959a5366a76bac6554c35bbde07fbfaa8d345 (diff)
Ensure socket or pipe are passed to the native driver
Notes
Notes: merged as: ac66cb60b09b16b3a280e7cea5f2f01e852dfc85
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/mysql/YDriver.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index 2e308817b068..83d862cab140 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -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());
}