diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-09-27 03:20:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-29 12:58:47 +0100 |
commit | ac66cb60b09b16b3a280e7cea5f2f01e852dfc85 (patch) | |
tree | e7cacd2caf9576377f956eb2024ab45a72d847f3 /connectivity | |
parent | 37ca14359b8c4027f1d9f9569ddfa2740cd2731e (diff) |
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.cxx | 19 |
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()); } |