diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-11-09 18:39:18 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-11-09 18:39:18 +0100 |
commit | 7b9a9a49862e4ec42ab9ffd85f94713960a94c3a (patch) | |
tree | 49651bf8de82b3be196fe62529cf727d49cfb1dd /connectivity/source/drivers/firebird | |
parent | ed8c4decb3dbcd406f7deb59d9ae917337b46ebe (diff) |
make firebird-sdbc an experimental feature
Change-Id: I0f2453e23d18597cfe1ad2a4cd4902b15f0a8f7d
Diffstat (limited to 'connectivity/source/drivers/firebird')
-rw-r--r-- | connectivity/source/drivers/firebird/Driver.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx index b15514cccbbc..932eae6b5680 100644 --- a/connectivity/source/drivers/firebird/Driver.cxx +++ b/connectivity/source/drivers/firebird/Driver.cxx @@ -28,6 +28,7 @@ #include <comphelper/processfactory.hxx> #include <cppuhelper/supportsservice.hxx> #include <osl/process.h> +#include <svtools/miscopt.hxx> using namespace com::sun::star; using namespace com::sun::star::uno; @@ -153,7 +154,10 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect( sal_Bool SAL_CALL FirebirdDriver::acceptsURL( const OUString& url ) throw(SQLException, RuntimeException) { - return url.equals("sdbc:embedded:firebird") || url.startsWith("sdbc:firebird:"); + SvtMiscOptions aMiscOptions; + + return aMiscOptions.IsExperimentalMode() && + (url.equals("sdbc:embedded:firebird") || url.startsWith("sdbc:firebird:")); } Sequence< DriverPropertyInfo > SAL_CALL FirebirdDriver::getPropertyInfo( |