diff options
Diffstat (limited to 'dbaccess/source/core/misc/dsntypes.cxx')
-rw-r--r-- | dbaccess/source/core/misc/dsntypes.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index aa24ed9da541..6eeec003e014 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -300,9 +300,7 @@ Sequence<PropertyValue> ODsnTypeCollection::getDefaultDBSettings( const OUString //------------------------------------------------------------------------- bool ODsnTypeCollection::isEmbeddedDatabase( const OUString& _sURL ) const { - const OUString sEmbeddedDatabaseURL = getEmbeddedDatabase(); - WildCard aWildCard(sEmbeddedDatabaseURL); - return aWildCard.Matches(_sURL); + return _sURL.startsWith( "sdbc:embedded:" ); } // ----------------------------------------------------------------------------- OUString ODsnTypeCollection::getEmbeddedDatabase() const |