summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-09-27 03:20:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-29 12:58:47 +0100
commitac66cb60b09b16b3a280e7cea5f2f01e852dfc85 (patch)
treee7cacd2caf9576377f956eb2024ab45a72d847f3 /connectivity
parentRelated: #i119525# List only JREs whose jvm library can be loaded (diff)
downloadcore-ac66cb60b09b16b3a280e7cea5f2f01e852dfc85.tar.gz
core-ac66cb60b09b16b3a280e7cea5f2f01e852dfc85.zip
Ensure socket or pipe are passed to the native driver
(cherry picked from commit ad1186563ea12ce63dfdf738c332bf712084f633) Change-Id: Ib556732abb42dd3371331368c2b2eb717d505461
Diffstat (limited to 'connectivity')
-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 bd826e073504..dd8c36db3a15 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -354,6 +354,25 @@ namespace connectivity
,Sequence< OUString >())
);
}
+ else if ( eType == D_NATIVE )
+ {
+ aDriverInfo.push_back(DriverPropertyInfo(
+ OUString(RTL_CONSTASCII_USTRINGPARAM("LocalSocket"))
+ ,OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "The file path of a socket to connect to a local MySQL server."))
+ ,sal_False
+ ,OUString()
+ ,Sequence< OUString >())
+ );
+ aDriverInfo.push_back(DriverPropertyInfo(
+ OUString(RTL_CONSTASCII_USTRINGPARAM("NamedPipe"))
+ ,OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "The name of a pipe to connect to a local MySQL server."))
+ ,sal_False
+ ,OUString()
+ ,Sequence< OUString >())
+ );
+ }
return Sequence< DriverPropertyInfo >(&aDriverInfo[0],aDriverInfo.size());
}